Skip to content

Instantly share code, notes, and snippets.

@tuna2134
Last active November 6, 2025 07:40
Show Gist options
  • Select an option

  • Save tuna2134/decb869d171efcb3d76f5f6810211f25 to your computer and use it in GitHub Desktop.

Select an option

Save tuna2134/decb869d171efcb3d76f5f6810211f25 to your computer and use it in GitHub Desktop.

FreeBSDでEtherIP

FreeBSDでEtherIPをやる方法です。

/etc/rc.conf

ifconfig_DEFAULT="inet6 accept_rtadv"
cloned_interfaces="gif0 bridge0"
ifconfig_gif0="inet6 tunnel <source-address> <remote-address> mtu 1500 link0 up"
ifconfig_bridge0="mtu 1500 addm gif0 addm em0 up"
ifconfig_em0="-rxcsum -txcsum -lro -rxcsum6 -txcsum6 up"

sysrc pf_enable=yes
pf_enable="yes"

/etc/pf.conf

scrub out on gif0 inet proto tcp max-mss 1404
scrub in on gif0 inet proto tcp max-mss 1404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment