Hi
I install Proxmox on server vs external static IP-address.
And then i make two networks.
eth0 - vmbr0 - (100) pfSense - vmbr1 - (101) FreeNAS
All experiments ws iptables i do after read forums... But its not work
On vm (100) pfSense i have 2 interfaces:
WAN -> em0 -> 10.0.2.16/24
LAN -> em1 -> 10.10.10.254/24
On vm (101) FreeNAS only one interface%
10.10.10.100/24
From NAS internet work and i can download and upload files.
On pfSanse i make rules:
TCP/UDP * to destination 10.10.10.100 : 20
TCP/UDP * to destination 10.10.10.100 : 21
And on NAT PortForward:
TCP/UDP WAN 20 to 10.10.10.100 : 20
TCP/UDP WAN 21 to 10.10.10.100 : 21
But its all not work...
I cannot connect to ftp. And I don`t see in logs any errors...
I install Proxmox on server vs external static IP-address.
And then i make two networks.
eth0 - vmbr0 - (100) pfSense - vmbr1 - (101) FreeNAS
auto eth0
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 80.XXX.XXX.XXX
netmask 255.255.255.0
gateway 80.XXX.XXX.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
# post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 21 -j NAT --to 10.0.2.16:21
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 21 -j NAT --to 10.0.2.16:21
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
# post-up echo 1 > /proc/sys/net/ipv4/ip_forward
iface eth0 inet manual
auto vmbr0
iface vmbr0 inet static
address 80.XXX.XXX.XXX
netmask 255.255.255.0
gateway 80.XXX.XXX.1
bridge_ports eth0
bridge_stp off
bridge_fd 0
# post-up iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 21 -j NAT --to 10.0.2.16:21
post-down iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 21 -j NAT --to 10.0.2.16:21
auto vmbr1
iface vmbr1 inet static
address 10.10.10.1
netmask 255.255.255.0
bridge_ports none
bridge_stp off
bridge_fd 0
# post-up echo 1 > /proc/sys/net/ipv4/ip_forward
All experiments ws iptables i do after read forums... But its not work
On vm (100) pfSense i have 2 interfaces:
WAN -> em0 -> 10.0.2.16/24
LAN -> em1 -> 10.10.10.254/24
On vm (101) FreeNAS only one interface%
10.10.10.100/24
From NAS internet work and i can download and upload files.
On pfSanse i make rules:
TCP/UDP * to destination 10.10.10.100 : 20
TCP/UDP * to destination 10.10.10.100 : 21
And on NAT PortForward:
TCP/UDP WAN 20 to 10.10.10.100 : 20
TCP/UDP WAN 21 to 10.10.10.100 : 21
But its all not work...
I cannot connect to ftp. And I don`t see in logs any errors...