This is an old revision of the document!


BSD

FreeBSD

Network stuff

Forcing link speed

 ifconfig em0 media 100BaseFX mediaopt full-duplex
parameterdescription
autoselectEnables auto-negotiation for speed and duplex.
10baseT/UTPSets 10Mbps operation. Use the mediaopt option to select full-duplex mode.
100baseTXSets 100Mbps operation. Use the mediaopt option to select full-duplex mode.
1000baseSXSets 1000Mbps operation. Only full-duplex mode is supported at this speed.
1000baseTXSets 1000Mbps operation. Only full-duplex mode is supported at this speed.
full-duplexForces full-duplex operation
half-duplexForces half-duplex operation.

working with routes (print routing table)

 netstat -rn

creating interface vlans

ifconfig vlan0 create
ifconfig vlan0 vlan 4 vlandev fxp0
ifconfig vlan0 inet a.a.a.a netmask x.x.x.x up

Globetrotter UMTS Card

cd /usr/ports/comm/hso-kmod/
make install clean
kldload hso
hsoctl -n -a internet -p PIN hso0 -u mobitel -k internet

There is a problem with the code used from ports (at least for me it was). 
If you'll get disconnected right after connection, go to http://www.shapeshifter.se/code/hso/ and download/install the code manually. 
It's pretty trivial so no problems with it. 

Firewalling

ipfw list

Firewalling IPv6 Below some rules of implementing firewall in FreeBSD. Using IPFW (please compile your kernel, if it’s not supported). It’s easy as IPv4.

# Simple Firewall :
(allow network 2404:170::/32 to any host)
ip6fw add 100 allow all from 2404:170::/32 to any in via fxp0

(allow network 2001:dc6::/32 to any host)
ip6fw add 200 allow all from 2001:dc6::/32 to any in via fxp0

(allow all ipv6 to host 2404:170:ee02::10)
ip6fw add 300 allow all from :: to 2404:170:ee02:ee02::10 in via fxp0

(deny other all traffic).
ip6fw add 1000 deny all from any to any in via fxp0

OpenBSD

NetBSD

FruBSD

Going through heavy developing phase …

bsd.1231241680.txt.gz · Last modified: 2009/05/25 00:34 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0 ipv6 ready