https://github.com/mjc-gh/ip_tables-ruby
Simple DSL and utilities for iptables
https://github.com/mjc-gh/ip_tables-ruby
Last synced: 7 months ago
JSON representation
Simple DSL and utilities for iptables
- Host: GitHub
- URL: https://github.com/mjc-gh/ip_tables-ruby
- Owner: mjc-gh
- License: mit
- Created: 2013-10-14T19:43:13.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2016-09-11T14:13:03.000Z (about 9 years ago)
- Last Synced: 2025-03-15T08:33:34.309Z (7 months ago)
- Language: Ruby
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# IpTables
Simple DSL for writing and building IP tables rule sets. This gem is unfinished and is still a work in progres...
## Example
Here's a quick example of the DSL:
```ruby
chain :in, default: :drop do
accept src: '192.168.1.0/24', dst: :any do
match :tcp, dport: [22, 80, 443]
match :udp, dport: 53
end
endchain :out, default: :accept
chain :forward, default: :drop
```## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request