When using NetworkManager in KDE 4.7.4, how do you manage iptables?
I have been using the KDE NetworkManager widget in KDE 4.7.4 supplied by Alien_Bob http://alien.slackbook.org/blog/kde-...he-4-7-series/. (Again Eric,Thanks!)
It is very welcome as I can manage all my network devices from the one screen.
On my netbook, I would like to able adjust my firewall settings depending on the interface used. If I connect using a USB modem on ppp0 then I want all incoming ports closed. If I connect by wireless on wlan0 to my home system then I want NFS ports open. If I connect by a wired connection on eth0 then I want Samba ports open.
I have found the Manage Connections... -> Other -> Configure Notifications... -> Network Connection Succeeded -> Run Command setting and tried running /etc/rc.d/rc.firewall, but it does not succeed, probably due to permissions.
Any thoughts on how to handle this?
Can't you keep rc.firewall.iface scripts? You switch from wireless to USB modem and do a rc.firewall.wlan0 stop && rc.firewal.ppp0 start? You then symlink the most commonly used interface to rc.firewall.
Found an answer on the ArchWiki https://wiki.archlinux.org/index.php/NetworkManager
Created a file 25_SetFirewall in /etc/NetworkManager/dispatcher.d/ containing this script that runs suitable iptables firewall scripts.
|All times are GMT -5. The time now is 04:51 AM.|