https://github.com/crosbymichael/firewall
Simple iptables based firewall
https://github.com/crosbymichael/firewall
Last synced: about 1 month ago
JSON representation
Simple iptables based firewall
- Host: GitHub
- URL: https://github.com/crosbymichael/firewall
- Owner: crosbymichael
- License: mit
- Created: 2014-09-04T07:11:05.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-05T05:17:21.000Z (over 10 years ago)
- Last Synced: 2025-03-27T12:11:40.369Z (about 2 months ago)
- Language: Go
- Size: 121 KB
- Stars: 23
- Watchers: 3
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
firewall is a simple go app that adds and removes iptables rules blocking external access to ports
unless it matches a specific ip.#### Apply the rules within the config
```bash
firewall config.json
```#### Remove the rules within the config
```bash
firewall -rm config.json
```#### Sample config
```json
[
{
"interface": "eth0",
"proto": "tcp",
"port": 8080,
"allow": [
"107.170.333.222"
]
}
]
```