EHfive / einat-ebpf

An eBPF-based Endpoint-Independent(Full Cone) NAT for Linux
GNU General Public License v2.0
172 stars 8 forks source link

如果我想进行 fullcone 和 nat66,CLI 方式启动应该怎么使用? #12

Closed sbwml closed 7 months ago

sbwml commented 7 months ago

我的网口信息:

wan:eth0 (DHCP) wan6:eth0 (DHCPv6)

br-lan:eth1、eth2(网桥设备)

当我尝试执行:

./einat --ifname eth0 --hairpin-if lo br-lan

得到信息:

2024-04-07T23:13:03.097784Z  INFO einat::instance: eBPF programs loaded in 413.531545ms
2024-04-07T23:13:03.097904Z  INFO einat::instance: setting default external IPv4 address 192.168.50.115
2024-04-07T23:13:03.097935Z  INFO einat::instance: no default external IPv6 address set, NAT66 disabled
2024-04-07T23:13:03.098207Z  WARN einat: libbpf: Kernel error message: Exclusivity flag on, cannot modify

fullcone 没有工作。

image

sbwml commented 7 months ago

PS:我的网络环境应该没有问题,因为在传统的 nft-fullcone 或者 bcm-fullcone 中,NAT1 都是工作的。

image