Skip to content

IPTables based firewall with various capabilities: NAT in/out, QoS, routing, multi-wan, common attack protection

Notifications You must be signed in to change notification settings

flaviostutz/firewall-stutz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

firewall-stutz

IPTables based firewall with various capabilities: NAT in/out, QoS, routing, multi-wan, common attack protection

If you are willing to use IPTables for firewalling, this project is a good start point. I've been using this setup for almost a decade among some clients.

Now I recomend using PF (Packet Filter) from OpenBSD for large firewall/router linux boxes, but for multi-wan and QoS the scripts from this repo works beatifully and will be a good use.

For regular use small boxes, I've been using Mikrotik. Check out the https://github.com/flaviostutz/firewall-stutz/blob/master/mikrotik-script.rsc script that does almost everything the IPTables does.

With this script I already created complex site-to-site vpns (OpenVPN) along with multi-wan support on over 5 simultaneous sites, VoIP packet prioritization (QoS) and multi-segmented networks managed by a single box.

Initial setup

  • Copy "etc/firewall-stutz" folder to your Linux distribution over "/etc/firewall-stutz"
  • run "ln -s /etc/firewall-stutz/test-default-gateways /etc/cron.d/test-default-gateways"
    • Make sure cron service is running
    • This will test whatever your configured default routes (multi-wan) are up or down and perform modifications on default routes depending on link status
  • run "ln -s /etc/firewall-stutz/firewall /etc/init.d/firewall"
    • after this you can start/restart the firewall using "service firewall start|stop|restart"
  • Edit files on /etc/firewall-stutz/conf
    • There is an extensive example there. Remember to comment out the parts you don't need
  • run "service firewall start"

About

IPTables based firewall with various capabilities: NAT in/out, QoS, routing, multi-wan, common attack protection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published