NAT, linux, XP Pro, and FTP
My XP Pro box is behind a Linux NAT box, can I configure the linux box to forward all FTP requests to my XP box's private IP on my LAN?
How would I do that? Thanks -R |
Your going to have to use your iptables NAT. Adding this to your iptables should forward outside ftp requests:
iptables -A PREROUTING -t nat -d xxx.xxx.xxx.xxx -i eth0 -p tcp -m tcp --dport 21 -j DNAT --to-destination yyy.yyy.yyy.yyy Where xxx... is the ip address of your linux box and yyy... is the internal LAN address of your ftp server. And eth0 is your external NIC and eth1 is your internal NIC. Might have to add this as well to the filter: iptables -A FORWARD -i eth0 -o eth1 -p tcp -m tcp --dport 21 -m state --state NEW,RELATED -j ACCEPT HTH |
All times are GMT -5. The time now is 09:23 AM. |