On 04/25/2016 06:39 AM, [email protected] wrote: > In conntrack, I've added a 'BOGON' ipset block list > > DROP:P EXTIF:+BOGONS - > > Atm, the IPSet contains just the short/aggregated Cymru bogons list > (http://www.team-cymru.org/Services/Bogons/bogon-bn-agg.txt). > > Since it's only blocking matched Source-on-EXTIF, I too-quickly assumed that > it would not mess with my internal networks. > > But, since I've a VPN tunnel between this machine, and another box, even > though the VPN's over the tun (not "EXT") intfc, the endpoints are clearly > involved over the link. > > So, I need to exclude them from the 'DROP'. > > My question is which is the correct & most efficient method to do so? > > My first inclination is to simply add my internal nets in use to another > ipset, say MY_INT_NETS, and change > > - DROP:P EXTIF:+BOGONS - > + DROP:P EXTIF:+BOGONS!+MY_INT_NETS - > > which, IIUC, should work. > > Is there a more 'shorewall' way -- something in shorewall.conf -- of keeping > my used internal nets un-blocked? >
The more 'shorewall' way to do this would be do add this in /etc/shorewall/blrules: DROP net:+BOGONS all Placing the DROP rule in the raw PREROUTING chain means that every packet entering the firewall through the WAN interface is subjected to an ipset lookup. By placing the rule in blrules, only those packets in states listed in the BLACKLIST setting (default is NEW,INVALID) are subjected to that search. Plus you solve your problem with local nets (which I must confess that I don't understand). -Tom -- Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________ Shorewall-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-users
