Michael Stapelberg
70f367a546
verdict: add Chain (+test)
...
related to #18
2019-05-24 02:56:43 +02:00
Michael Stapelberg
d3930927e4
declare a Go module
2019-05-24 02:21:35 +02:00
Michael Stapelberg
c5bb71b2cf
implement redir expression (+test)
...
fixes #17
2019-05-17 13:57:31 +02:00
Ryan Whelan
b0a2c473e0
List tables ( #16 )
...
list tables function
2019-05-13 14:13:23 +02:00
Ryan Whelan
7bac3e3135
Restructure code base into smaller files ( #15 )
...
* Restrcture code base into smaller files
* Package level doc string
* Move ExprsFromMsg back from expr sub-module
* gofmt
2019-05-03 23:54:09 +02:00
Ryan Whelan
07c974e364
fix: Typo in unmarshal on Cmp struct ( #14 )
2019-04-30 17:07:43 +02:00
Matt Layher
a975e10ef9
nftables: update for package netlink constant renames ( #13 )
2019-03-02 17:04:15 +01:00
Tom D
b8b6574812
Implement GetRule for Immediate, Verdict, and Lookup expressions ( #11 )
2019-02-18 13:01:32 +01:00
Tom D
ca263a814b
Add support for inverted set lookups. ( #10 )
2019-02-13 10:06:43 +01:00
Michael Stapelberg
51ca8da884
Merge pull request #9 from twitchy-jsonp/master
...
Implement support for nftable sets.
2019-02-12 08:18:11 +01:00
Tom
2bb2b66f95
Implement support for anonymous & named sets.
2019-02-11 16:11:27 -08:00
Tom
c76172e9b6
Merge branch 'master' of github.com:twitchy-jsonp/nftables
2019-01-28 20:53:56 -08:00
Dhiver
b732c419a3
Implement Queue Expr ( #8 )
2019-01-28 18:01:13 +01:00
Tom D
7612760462
Implement verdict expression. ( #7 )
2019-01-17 09:48:46 +01:00
Tom
3a9b1b0cab
Implement verdict expression.
2019-01-16 16:23:05 -08:00
Tom D
2610769f25
Implement DelTable ( #6 )
2019-01-06 23:08:33 +01:00
Michael Stapelberg
fedef31bd8
nftables_test: add ConfigureNATSourceAddress for illustration
...
related to #5
2019-01-04 08:46:40 +01:00
Michael Stapelberg
9ac63cb282
add exprs and test for TCP MSS clamping
2018-10-22 09:22:02 +02:00
Florian Lehner
efc2089755
res_id is big endian ( #3 )
...
Signed-off-by: Lehner Florian <dev@der-flo.net>
2018-10-05 17:58:05 +02:00
Michael Stapelberg
695079ebff
objFromMsg: correctly set Table.Family
...
This fixes an issue in router7 where firewall rules would fail to be installed
on all but the first tries (the first try had no counter values, so the
passed-in Table would be returned as-is, with correct family).
2018-10-03 18:23:26 +02:00
Michael Stapelberg
409eade12e
switch to new netlink.AttributeDecoder
...
fixes #2
2018-08-10 18:59:05 +02:00
Michael Stapelberg
121db0bb23
add expr.Objref
2018-08-08 23:11:26 +02:00
Michael Stapelberg
89ed0f315e
implement CounterObj, AddObj, GetObj, GetObjReset
...
related to https://github.com/rtr7/router7/issues/3
2018-08-08 23:09:16 +02:00
Michael Stapelberg
beb488f6fa
implement expr.Payload unmarshaling
2018-06-28 20:05:27 +02:00
Michael Stapelberg
2338808f3c
fix expr.Cmp unmarshaling
2018-06-28 20:05:16 +02:00
Michael Stapelberg
48a6685597
add expr.Counter
2018-06-23 21:12:40 +02:00
Michael Stapelberg
1324f5d5a9
add GetRule
2018-06-23 21:12:14 +02:00
Michael Stapelberg
0dd2e15e25
AddChain, AddRule: use table’s family
2018-06-19 10:02:23 +02:00
Michael Stapelberg
23299d6a1a
add port range test
2018-06-14 22:26:38 +02:00
Michael Stapelberg
05c74458a0
NAT: add RegProtoMax if >0
2018-06-14 22:26:30 +02:00
Michael Stapelberg
0ba4d9997a
Cmp: fix accidentally hard-coded EQ operator
2018-06-14 22:26:13 +02:00
Michael Stapelberg
13709ef9a6
add FlushRuleset
2018-06-14 08:26:52 +02:00
Matt Layher
4de6a4e001
Close netlink connection after flushing commands ( #1 )
2018-06-09 15:12:55 +02:00
Michael Stapelberg
0fe8ac05ad
travis: remove docker service which we don’t use in this project
2018-06-08 17:25:47 +02:00
Michael Stapelberg
8285e64efb
README: add travis and godoc badge
2018-06-08 17:24:24 +02:00
Michael Stapelberg
94313e7b39
add travis config
2018-06-08 17:19:37 +02:00
Michael Stapelberg
274a55e6d8
add README
2018-06-08 17:15:29 +02:00
Michael Stapelberg
dab6002a09
add enough expressions to express port forwardings
2018-06-04 23:13:54 +02:00
Michael Stapelberg
afbe6ed893
Initial commit
2018-05-24 22:09:26 -07:00