| 95 | Warning: IPv4 and IPv6 is provided example only, provide your own local IP configuration |
| 96 | {{{ |
| 97 | chroot# cat <<EOF > /etc/rtadvd.conf |
| 98 | bridge0:\ |
| 99 | :addrs#1:addr="2001:1af8:febe::":prefixlen#64:tc=ether: |
| 100 | EOF |
| 101 | }}} |
| 102 | |
| 103 | {{{ |
| 104 | chroot# <<EOF >> /etc/rc.conf |
| 105 | cloned_interfaces="bridge0" |
| 106 | wlans_ath0="wlan0" |
| 107 | |
| 108 | # Internal wired and wireless |
| 109 | ifconfig_vr0="up" |
| 110 | create_args_wlan0="wlanmode hostap country NL mode 11g ssid home.vanderzwet.net up" |
| 111 | ifconfig_bridge0="addm wlan0 addm vr0 up" |
| 112 | ipv4_addrs_bridge0="192.168.42.1/24 192.168.1.2/24" |
| 113 | ipv6_ifconfig_bridge0="fe80::2 prefixlen 64" |
| 114 | ipv6_ifconfig_bridge0_alias0="2001:1af8:febe::1 prefixlen 64" |
| 115 | |
| 116 | # Wireless Leiden Connections |
| 117 | ifconfig_vr2="up" |
| 118 | ipv4_addrs_vr2="172.20.145.130/26" |
| 119 | |
| 120 | # Internet |
| 121 | ifconfig_vr1="DHCP" |
| 122 | |
| 123 | static_routes="wleiden" |
| 124 | route_wleiden="-net 172.16.0.0/12 172.20.145.129" |
| 125 | |
| 126 | ipv6_defaultrouter="2001:1af8:fe00:28e::1" |
| 127 | ipv6_network_interfaces="auto" |
| 128 | rtadvd_interfaces="bridge0" |
| 129 | rtadvd_enable="YES" |
| 130 | EOF |
| 131 | }}} |
| 132 | |
| 133 | {{{ |
| 134 | chroot# cat <<EOF > /etc/hostapd.conf |
| 135 | interface=wlan0 |
| 136 | driver=bsd |
| 137 | |
| 138 | logger_syslog=-1 |
| 139 | logger_syslog_level=0 |
| 140 | logger_stdout=-1 |
| 141 | logger_stdout_level=2 |
| 142 | dump_file=/tmp/hostapd.dump |
| 143 | ctrl_interface=/var/run/hostapd |
| 144 | ctrl_interface_group=0 |
| 145 | |
| 146 | macaddr_acl=0 |
| 147 | auth_algs=1 |
| 148 | |
| 149 | wpa=1 |
| 150 | wpa_passphrase=M3nW1r3l3ss! |
| 151 | wpa_key_mgmt=WPA-PSK |
| 152 | wpa_pairwise=CCMP TKIP |
| 153 | EOF |
| 154 | }}} |
| 155 | |
| 242 | Hack to reload the usb card reader to reread partition tables: |
| 243 | build# usbconfig -d `usbconfig | awk -F : '/Mass/ {print $1}'` reset |
| 244 | |
| 245 | Have a look to which card (da1 in mine case) you like to install it: |
| 246 | build# grep sectors /var/log/messages |
| 247 | > Feb 2 12:55:12 brahm kernel: da1: 7629MB (15625216 512 byte sectors: 255H 63S/T 972C) |
| 248 | |
| 249 | Tip: During this process you can press CTRL+T to send SIGINFO, this will tell you the current state of the code. |
| 250 | Important: The following action will DESTROY all the existing content on the configured device. USE AT OWN RISK. |
| 251 | |