Learned Something New

Posted on January 20th, 2005 by

As anyone who as worked with Linux, iptables, and ftp knows, firewalls and ftp can cause issues. I already knew that if I was using iptables I should use the ip_conntrack_ftp kernel module. So I had added “insmod ip_conntrack_ftp” to the /etc/rc.local file so it was inserted at boot. However what I didn’t think about was that when you restart iptables, it unloads the ip_conntrack_ftp module but does not add it back. So I made a change to the firewall, restarted iptables, and ftp access to the box was broken. The fix for me was to edit /etc/rc.d/init.d/iptables and add ip_conntrack_ftp to the line IPTABLES_MODULES=”” like so IPTABLES_MODULES=”ip_conntrack_ftp”. Now when I restart iptables the connection tracking gets reloaded and everyone is happy.

Contact Us

Phone: 507-933-6111
Email: helpline@gustavus.edu
Web: https://gustavus.edu/gts
Blog: https://gts.blog.gustavus.edu
Twitter: https://twitter.com/gtshelpline
Remote Support: https://sos.gac.edu
System Status: https://gustavus.freshstatus.io

Sign up for our newsletter.

Receive a daily digest anytime we post something new.

We don’t spam! Unsubscribe at any time!

 

Comments are closed.