Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Router - OpenBSD: Difference between revisions

clean up, typos fixed: e.g → e.g.
(Created page with "You can use a computer running OpenBSD as your AAISP router, and make use of its simple configuration and powerful 'pf' firewall. I'll assume your box has two NICs, re0 and r...")
 
(clean up, typos fixed: e.g → e.g.)
 
(5 intermediate revisions by one other user not shown)
 
== 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:
authproto chap authname 'aa11@a.1' authkey 'yourpasswordgoeshere' up
dest 0.0.0.1
inet6 eui64autoconf
!/sbin/route add default -ifp pppoe0 0.0.0.1
!/sbin/route add -inet6 default -ifp pppoe0 fe80::
 
Once this is all done, you should be able to just run: <code>sh /etc/netstart</code> and have your PPPoE connect (watch the syslog for details). It should automatically reconnect if there's a dropout.
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 need to add a line to your firewall configuration (/etc/pf.conf) to enable NAT (replace the range with your chosen IPv4 NAT range):
 
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]]
editor
700

edits