version 1.7, 2012/07/25 21:26:34
|
version 1.12, 2012/08/08 20:25:57
|
Line 23 inet 172.16.0.1 netmask 0xffffffff alias
|
Line 23 inet 172.16.0.1 netmask 0xffffffff alias
|
|
|
[[!template id=programlisting text=""" |
[[!template id=programlisting text=""" |
$ cat /etc/ifconfig.re0 |
$ cat /etc/ifconfig.re0 |
|
up |
!dhcpcd $int |
!dhcpcd $int |
"""]] |
"""]] |
|
|
Line 52 media 100baseTX up
|
Line 53 media 100baseTX up
|
inet6 2001:dead:beef:1::1 prefixlen 64 |
inet6 2001:dead:beef:1::1 prefixlen 64 |
"""]] |
"""]] |
|
|
|
## Very basic pf rules for NAT and firewalling |
|
|
|
[[!template id=programlisting text=""" |
|
$ cat /etc/pf.conf |
|
ext_if="sip0" |
|
int_if="re0" |
|
|
|
nat on $ext_if from !($ext_if) -> ($ext_if:0) |
|
|
|
# allow outgoing traffic (S/A is implied) |
|
pass out on $ext_if |
|
# block all incoming traffic |
|
block in log on $ext_if |
|
"""]] |
|
|
|
## Setup WPA WiFi client |
|
|
|
[[!template id=programlisting text=""" |
|
# wpa_passphrase WPA-WiFi-SSID my-strong-passphrase >> /etc/wpa_supplicant.conf |
|
$ grep wpa /etc/rc.conf |
|
wpa_supplicant=YES |
|
wpa_supplicant_flags="-B -iath0 -c/etc/wpa_supplicant.conf" |
|
# /etc/rc.d/wpa_supplicant start |
|
"""]] |
|
|
## Upgrade the system with binaries |
## Upgrade the system with binaries |
|
|
[[!template id=programlisting text=""" |
[[!template id=programlisting text=""" |
Line 62 inet6 2001:dead:beef:1::1 prefixlen 64
|
Line 88 inet6 2001:dead:beef:1::1 prefixlen 64
|
# for i in base comp games man misc modules tests text xbase xcomp xetc xfont xserver; do tar zxvfp $i.tgz -C /;done |
# for i in base comp games man misc modules tests text xbase xcomp xetc xfont xserver; do tar zxvfp $i.tgz -C /;done |
# mkdir /tmp/temproot |
# mkdir /tmp/temproot |
# tar zxvfp etc.tgz -C /tmp/temproot |
# tar zxvfp etc.tgz -C /tmp/temproot |
# postinstall -s /tmp/tmproot check |
# postinstall -s /tmp/temproot check |
# # copy postinstall's requirements |
# # copy postinstall's requirements |
# etcupdate -s /tmp/tmproot |
# etcupdate -s /tmp/tmproot |
# shutdown -r now |
# shutdown -r now |
Line 108 inet6 2001:dead:beef:1::1 prefixlen 64
|
Line 134 inet6 2001:dead:beef:1::1 prefixlen 64
|
$ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so |
$ nspluginwrapper -i /usr/pkg/lib/netscape/plugins/libflashplayer.so |
"""]] |
"""]] |
|
|
|
## Mount / umount an iso image |
|
|
|
[[!template id=programlisting text=""" |
|
# vnconfig -v -c /dev/vnd0d output.iso |
|
# mount -t cd9660 /dev/vnd0a /mnt |
|
# [...] |
|
# umount /mnt |
|
# vnconfig -u vnd0d |
|
"""]] |
|
|