https://github.com/sgpinkus/firewall-iptables-deb
Simple iptables firewall with port forwarding, setup as a inserv init script.
https://github.com/sgpinkus/firewall-iptables-deb
Last synced: about 2 months ago
JSON representation
Simple iptables firewall with port forwarding, setup as a inserv init script.
- Host: GitHub
- URL: https://github.com/sgpinkus/firewall-iptables-deb
- Owner: sgpinkus
- Created: 2013-02-04T05:51:37.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-08-10T04:51:23.000Z (almost 2 years ago)
- Last Synced: 2024-10-10T05:35:13.865Z (8 months ago)
- Language: Shell
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
Simple iptables firewall setup packaged as a debian init script. Based off tutorial by David A. Ranch at http://www.ecst.csuchico.edu/~dranch. Breaks out actual rules scripts in directory `/etc/firewall-iptables/scripts.d/` which are run in alphabetical order on start|stop. This makes things more customizable and easy to manage.*Don't actually use this for a Linux firewall in production.* There are much better iptables frontends for managing and creating firewalls available now days like firewalld and ufw.
# Installation
To install as a .deb package:git clone [email protected]:sgpinkus/firewall-iptables-deb.git
cd firewall-iptables/
sudo gdebi build/firewall-iptables_*.debAlternatively you can use the Makefile:
make
sudo make install# Configuration
All configuration for built in scripts is via vars in /etc/default/firewall-iptables. See the default defaults for description.# Usage
- Installed as a service is used like `service firewall-iptables {start|stop|restart|force-reload}`.
- The built-in individual scripts can also be used like `FIREWALL_CONFFILE=./firewall-iptables.conf ./scripts.d/001-forward {start|stop}` w/o installing as init script.# Debian Packaging Notes
Build a .deb file:```
git clone [email protected]:sgpinkus/firewall-iptables-deb.git
cd firewall-iptables/
gbp dch
dch --release
dpkg-buildpackage -b -uc -us
git rm build/*.deb
mv ../firewall-iptables_*_all.deb build/
git add build/
```