[Gllug] IPtables - outgoing ftp connections

t.clarke tim at seacon.co.uk
Fri Sep 17 09:18:26 UTC 2010


Hi

I need to setup iptables to allow outgoing ftp connections to the outside world
from a specific box within the internal network.

iptables -A FORWARD -p tcp -i eth0 -s 192.168.0.nnn -d 0.0.0.0/0 --dport 21
 -j ACCEPT

would seem to allow outgoing connections to the 'control port', but I am not
sure about outgoing data to the data port.

would:
iptables -A FORWARD -p tcp -i eth0 -s 192.168.0.nnn -d 0.0.0.0/0 --state RELATED
- j ACCEPT
work ?

I assume I also need to do:
/sbin/modprobe ip_conntrack_ftp   ??

Any advice gratefuly received

Tim

--------------------------------------------------------------------------------
This E-Mail (and any files transmitted with it) is intended solely for the use
of the individual or entity to whom it is addressed. If you have received it in
error please notify the sender and delete the message.

Seacon Terminals Ltd, Company No. 1547396, registered in England and Wales
Registered Office:  Tower Wharf, Northfleet, Kent, DA11 9BD, England

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list