amuck-landowner

iptables interface library for .net / mono

splitice

Just a little bit crazy...
Verified Provider
My project for the past month (during hobby time) has been the development of an Open Source .NET abstraction library for IPTables on Linux (although any *nix / BSD should be compatible). Its designed to replace a non Open Source library I developed years ago and used for a few utilities.

Its currently pre-release but getting pretty close to stability. Supports many of the common IPTables modules (and its easy to add additional support). Unit tested (pretty well, could be better). Currently looking for a bit of volunteer time / testing through use. I figure its probably very useful to those developing utilities here at VPSB.

Particular features of note:

  • Parses IPTables command line
  • Supports remote systems via SSH as well as Local Systems (Great for debugging!)
  • Will be available as a stable NuGet release
  • Provides an optional Sync pattern where you can build up an in memory representation of the chain and the software will add, delete and replace rules to make it match.
  • Unit tested for regressions
  • Fully mono compatible (it is my primary target for production use)
  • Uses iptables-save for rule extraction
Repository: https://github.com/splitice/IPTables.Net

Licence: BSD

If you want to develop an iptables based project using it feel free to give it a shot. If you submit any bug reports with a unit test illustrating the break it will be on my high priority list :)

I still haven't done a whole lot of commenting or documentation, the best place to start for examples is the unit tests.

Reviews. Comments. Commits. Forks - All welcome.
 
Last edited by a moderator:

TruvisT

Server Management Specialist
Verified Provider
Just took a look at the project currently going through the code. Nice work. Reminds me of my C# days.

I'll be sure to send any improvements your way.
 

splitice

Just a little bit crazy...
Verified Provider
Please do, always looking for a critical eye and submissions before stable releases.

I will be working on a stable release soon . Just testing a utility using the library currently. Hopefully within the next week - fortnight.
 

splitice

Just a little bit crazy...
Verified Provider
0.2.0 has been tagged now. Its being used in production now and supports a huge number of iptables-extension modules.

Most notable in this release:

  • Mark mnemonics sync correctly (i.e --set-mark vs --set-xmark vs and/or) 
  • More modules
  • More reliable SYNC
  • Production Tested and more Unit Tests
0.3.0 will be out when its out ™
 
Last edited by a moderator:
Top
amuck-landowner