Router - OpenBSD: Difference between revisions
Appearance
Content deleted Content added
No edit summary |
clean up, typos fixed: e.g → e.g. |
||
| (4 intermediate revisions by one other user not shown) | |||
| Line 6: | Line 6: | ||
== Setup == |
== Setup == |
||
Note that "re0" is used with a realtek NIC, you may have a different NIC driver name based on your hardware. |
|||
/etc/hostname.re0: |
/etc/hostname.re0: |
||
| Line 25: | Line 27: | ||
net.inet6.ip6.forwarding=1 |
net.inet6.ip6.forwarding=1 |
||
You'll also have to configure IPv6 RA and DHCPD. For IPv6, you'll need to configure a static IPv6 address (from your /64 range) on your internal LAN interface (via /etc/hostname.xxN) and add this to rc.conf.local: <code>rtadvd_flags=re1</code> (replace xxN with the name of your internal LAN interface, e.g re1). Configuring DHCPD is the same as Linux (ISC SANS DHCP server). |
You'll also have to configure IPv6 RA and DHCPD. For IPv6, you'll need to configure a static IPv6 address (from your /64 range) on your internal LAN interface (via /etc/hostname.xxN) and add this to rc.conf.local: <code>rtadvd_flags=re1</code> (replace xxN with the name of your internal LAN interface, e.g. re1). Configuring DHCPD is the same as Linux (ISC SANS DHCP server). |
||
You'll need to add a line to your firewall configuration (/etc/pf.conf) to enable NAT (replace the range with your chosen IPv4 NAT range): |
You'll need to add a line to your firewall configuration (/etc/pf.conf) to enable NAT (replace the range with your chosen IPv4 NAT range): |
||
| Line 36: | Line 38: | ||
If you want a 1500 byte MTU on an FTTC connection, it's as simple as changing <code>up</code> in hostname.re0 to <code>up mtu 1508</code> and adding <code>mtu 1500</code> to the hostname.pppoe0 line on the first line, before the word "pppoedev". See the pppoe manpage for details, although with the realtek driver (reN), note that you may need to be running OpenBSD 5.8 for the right driver support. |
If you want a 1500 byte MTU on an FTTC connection, it's as simple as changing <code>up</code> in hostname.re0 to <code>up mtu 1508</code> and adding <code>mtu 1500</code> to the hostname.pppoe0 line on the first line, before the word "pppoedev". See the pppoe manpage for details, although with the realtek driver (reN), note that you may need to be running OpenBSD 5.8 for the right driver support. |
||
[[Category:3rd Party Routers]] |
|||