FreeBSD Cheat Sheet
From Leo's Notes
This page was last edited on 4 December 2012, at 08:04.
Mounting ISO Image
Linux
Mount:
mount -o loop -t iso9660 <isofile> <destination>
Unmount:
umount <destination>
FreeBSD
Mount:
mdconfig -a -f <isofile> md0 mount -t cd9660 /dev/md0 <destination>
Unmount:
umount <destination> mdconfig -d -u md0
Adding IP Alias
FreeBSD
ifconfig re0 10.1.1.2 netmask 255.255.255.255 alias
/etc/rc.conf ifconfig_re0_alias0="10.1.1.2 netmask 255.255.255.255 alias"
Set a Gateway (Traffic Forwarder)
Linux
route add -net 10.10.2.0/24 dev INSIDE echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth2 (outside) -j MASQUERADE iptables -A FORWARD -i eth1 -j ACCEPT
Upgrading pkgconfig to pkg-config on FreeBSD
upgrade from pkgconf portmaster -o devel/pkgconf devel/pkg-config