RE: FTP and netfilter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> What kinda lines i need to get FTP working from from LAN, if 
> i use a linux as gateway machine..

insmod ip_conntrack_ftp
insmod ip_nat_ftp

iptables -P FORWARD DROP
iptables -A FORWARD -I <eth_lan> -o <eth_inet> -s <net_lan> -j ACCEPT

iptables -t nat -A POSTROUTING -s <net_lan> -o <eth_inet> -j SNAT
--to-destination <ip_inet>
(Or, if you have a dynamic IP or a ppp inet nic :)
iptables -t nat -A POSTROUTING -s <net_lan> -o <eth_inet> -j MASQUERADE


Gr,
Rob




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux