Editing Flashrd

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
== flashrd ==
== flashrd ==


flashrd is an OpenBSD installer tailored for flash-backed devices that have at least 1Gb of flash and 128Mb of RAM. Here's the [http://www.nmedia.net/flashrd/ project's homepage].
flashrd is an OpenBSD installer tailored for flash-backed devices that have at least 1Gb of flash and 128Mb of RAM. Here's the [http://www.nmedia.net/flashrd/ project's homepage]


== Installing flashrd ==
== Installing flashrd ==
Line 11: Line 11:
dd the new flashrd images to the existing flash cards.
dd the new flashrd images to the existing flash cards.


Mount the flash cards, boot into single user mode, or boot the flash card using qemu, then modify /etc/ttys as follows:
Mount the flash cards or boot the flash card using qemu, modify /etc/ttys as follows:


<pre>
<pre>
Line 24: Line 24:
<pre>
<pre>
set timeout 5
set timeout 5
stty com0 9600
set tty com0
set tty com0
</pre>
</pre>
Line 69: Line 68:
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/
export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.7/packages/i386/
pkg_add -v dnsmasq lsof curl bash iperf isc-dhcp-server net-snmp ngrep bwm-ng
pkg_add -v dnsmasq lsof curl bash iperf isc-dhcp-server net-snmp ngrep bwm-ng
</pre>
== Tunnel configuration ==
Sonic has a example ipv6 tunnel configuration generator for OpenBSD, but it only gives the pre-4.7 syntax.  Here's how r00ter is configured, and these settings should work for any 4.7 or up installation, including recent flashrd builds.
Note that regardless of what the ISP tells you to use as your subnet, you have to use a prefix length of /64 for automatic address configuration to work.  If you have a DHCPv6 server you can do whatever you want, though.
/etc/hostname.sisX:
<pre>
inet6 2001:05a8:0004:5630::0001/64
</pre>
/etc/rc.conf.local:
<pre>
rtadvd_flags="sisX"
</pre>
/etc/rtadvd.conf:
<pre>
sis1:addr="2001:5a8:4:5630::":prefixlen#64
</pre>
/etc/hostname.gif0:
<pre>
tunnel 75.101.62.88 208.201.234.221
inet6 alias 2001:5a8:0:1::ac7 prefixlen 127
</pre>
/etc/pf.conf:
You also have to make sure that any nat rules for your regular IPv4 traffic explicitly say "inet" only instead of all protocols, otherwise pf will try to nat the ipv6 packets too.
<pre>
pass in quick on gif0 inet6 keep state
pass in quick on $ext_if proto ipv6
pass out quick on $ext_if proto ipv6
</pre>
</pre>
Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Noisebridge:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)