iptables - passive FTP NAT

2012-03-26 by xpheas
BASH-Code:
1
2
3
modprobe ip_conntrack
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp

BASH-Code:
1
2
iptables -t nat -A PREROUTING -d xxx.xxx.xxx.xxx -p tcp --dport 21 -j DNAT --to-destination 192.168.122.25:21
iptables -I FORWARD -m state -d 192.168.122.0/24 --state NEW,RELATED,ESTABLISHED -j ACCEPT

xxx.xxx.xxx.xxx = public IP-address
192.168.122.25 = private IP-address

  « back

2014-03-13 by Diego | Website
Howto i can enable FTP PASSIVE mode for all clients?


Feel Free to Leave a Comment

Name:*


Email: (not visible)


Website:


Comment:*