bruma wrote: > Hi, > > I'm trying to add following iptables rules to shorewall: > > iptables -I INPUT -d 192.168.1.1 > iptables -I OUTPUT -s 192.168.1.1 > > What should I put in my custom action or any ware else? > > I need these rules for munin accounting. > iptables -L INPUT -v -n -x > Chain INPUT (policy DROP 5 packets, 260 bytes) > pkts bytes target prot opt in out source > destination > 7175 601167 all -- * * 0.0.0.0/0 > 192.168.1.1 >
Just place the commands in /etc/shorewall/start, replacing 'iptables' with 'run_iptables'. Munin needs a better iptables plugin -- having INPUT and OUTPUT hardcoded in the current plugin is really bogus. -Tom -- Tom Eastep \ Nothing is foolproof to a sufficiently talented fool Shoreline, \ http://shorewall.net Washington USA \ [EMAIL PROTECTED] PGP Public Key \ https://lists.shorewall.net/teastep.pgp.key
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
