r/ScriptSwap • u/ak_hepcat • Apr 24 '15
Flexible Firewall script (yet another?)
Yeah, I know, how many firewall scripts do we need?
I'm not even really sure why I started hacking this together. I think somebody was asking me what I use for a basic firewall, and I started putting the pieces together, then looking at other things on the internet, going back and forth, and then suddenly I had something that i thought I could make useful.
So, the basic premise of this script is that it -should- be able to be used on either endpoints or on a router/gw device without much change.
Oh, yeah, and it supports IPv4 and IPv6 as transparently as possible.
It's written in bash, because yet again I hate myself and use the simplest tools for the complex things.
https://github.com/akhepcat/FlexibleFirewall
It's just barely working, I think, so if you like beating things up and giving bug-reports or feedback, now's your chance!
1
u/ak_hepcat Apr 25 '15
Generic firewall script for end-hosts or NAT gateways Initially based on "http://www.linuxhelp.net/guides/iptables/"
Provides an easy access to allow local or forwarded services via pre-configured "tuples"
Note that these remote forwards will not be applied if an internal non-default route is not found.
TUPLES are port, IP, or IP+port pairs used to define the firewall rules.
Note: It's easy to conflict local services with forwarded ports, so be careful.
2
u/TotesMessenger Apr 24 '15
This thread has been linked to from another place on reddit.
If you follow any of the above links, respect the rules of reddit and don't vote. (Info / ^Contact)