Skip to content

Tags: nccgroup/phantap

Tags

2022.10.30-815c312c

Toggle 2022.10.30-815c312c's commit message
Forward 01:80:C2:00:00:0{1,2} using nftables

We were blocking pause frame, which is likely fine,
and LACP / Ethernet OAM Protocol which might be a problem.

This adds rules like
```
table netdev phantap {
    chain eth0 {
        type filter hook ingress device "eth0" priority filter; policy accept;
        ether daddr 01:80:c2:00:00:01-01:80:c2:00:00:02 dup to "eth1"
    }

    chain eth1 {
        type filter hook ingress device "eth1" priority filter; policy accept;
        ether daddr 01:80:c2:00:00:01-01:80:c2:00:00:02 dup to "eth0"
    }
}
```

This requires kmod-nft-netdev.

2022.02.12-e80be649

Toggle 2022.02.12-e80be649's commit message
Remove disable_eap_hack

This OpenWrt hack was recently removed
https://git.openwrt.org/56256259a1b970db23411af73875b87850750e50

Signed-off-by: Etienne Champetier <[email protected]>

2021.08.22-26bd8768

Toggle 2021.08.22-26bd8768's commit message
Switch from ifname to device

Signed-off-by: Etienne Champetier <[email protected]>

2020.12.31-a7177235

Toggle 2020.12.31-a7177235's commit message
Get resolvfile from configuration

Fix #12

2020.02.09-fb3be84b

Toggle 2020.02.09-fb3be84b's commit message
Split out ebtables anti-leak rules in phantap-early, improve logs

At START=01 "log" is not started yet so failsafe warning was not working.
Also uci defaults are applied at START=10 in "boot", so setup() was overidden on first boot.

The anti-leak rules do need to run really early, so move them to phantap-early,
and set START=90 in phantap.

Signed-off-by: Etienne Champetier <[email protected]>

2019.09.18-7cc6017e

Toggle 2019.09.18-7cc6017e's commit message
phantap-learn: Add another way to detect the victim

We already have: DHCP, DNS(responses), NTP(responses) for detecting
the victim. This commit adds Internet(responses).

2019.08.28-758fba1b

Toggle 2019.08.28-758fba1b's commit message
Fix EAP (802.1x) passthrough

Now that our disable_eap_hack sysfs config is merged in OpenWrt, use it
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=7d542dc8047d276517b296132926e722004065e0

Fix #2

Signed-off-by: Etienne Champetier <[email protected]>

2019.08.25-2ccec016

Toggle 2019.08.25-2ccec016's commit message
Replace phantap (script) with phantap-learn (C)

move the firewall / dns configuration part to the init.d script
all the detection bits are in phantap-learn now

Reviewed-by: Diana Dragusin <[email protected]>
Signed-off-by: Etienne Champetier <[email protected]>

2019.08.13-f5420af8

Toggle 2019.08.13-f5420af8's commit message
phantap: do not capture vlans

Signed-off-by: Etienne Champetier <[email protected]>

2019.08.04-f104742c

Toggle 2019.08.04-f104742c's commit message
phantap-learn: do not use proto for ip neigh

This was only introduced in Linux 5.0
torvalds/linux@df9b0e3

Signed-off-by: Etienne Champetier <[email protected]>