This page used to describe how to copy the NetBSD PPP subsystem to OpenBSD in order to get in-kernel PPPoE support. However, as there's native PPPoE support in -current since November 29, 2004, I've removed that and other bits of information.
pppoe_up = "(pppoe0.link.up)" state auto { if $pppoe_up { set-state online_ini } if ! $pppoe_up { set-state offline_ini } } state online_ini { if ! $pppoe_up { set-state offline } } state offline_ini { if $pppoe_up { set-state online } } state online { init { run "/etc/ppp/ip-up" } if ! $pppoe_up { set-state offline } } state offline { init { run "/etc/ppp/ip-down" } if $pppoe_up { set-state online } } |
scrub in all max-mss 1452in your pf configuration to perform MSS clamping.
sysctl -w net.inet.tcp.mssdflt=1452
Ethernet payload, 1500 octets
|
Some folks recommend to use 1440 (which gives at least some room for TCP options, e.g. SACK). YMMV, however. Personally, I've never had any trouble with 1452, and, in my experience, none of the other "recommended values" can beat that one.