Home arrow Notes
Notes PDF
Thursday, 14 February 2008

Testing with netperf:
cd /usr/ports/benchmarks/netperf ; make install
(server listening on 12865)
on server: netserver
on client: netperf -f k -H

Compile kernel with -B options to see compile errors
make -j4 -B buildkernel KERNCONF=SERVER

Debug a PPPoE Server - find PPPoE Servers

In order to debug a PPPoE server, configure a PPPoE client on a LAN computer (with FreeBSD), and then run tcpdump on the same LAN computer.

Add the following to /etc/ppp/ppp.conf file:

# --------------- ppp.conf file --------------------
  set log Phase tun command # you can add more detailed logging if you wish
  set ifaddr

  set device PPPoE:em0 # replace xl1 with your Ethernet device
  set authname YOURLOGINNAME
  set authkey YOURPASSWORD
  set dial
  set login
  add default HISADDR
#  ------------- end of ppp.conf ------------

Modify it using your pppoe username/password and network card.

Run tcpdump:

tcpdump -i em0 -e | grep PADO

Dial to PPPoE Server:

ppp -ddial pppoeserver

Configure Windows Vista to work with SAMBA server on FreeBSD

To be able to access Samba shares on a FreeBSD (or Linux) server  you must modify the following value in Windows Vista  (using regedit from command prompt):


By default this value is  0x3 which means authentication NTLMv2 only. This feature is not supported by Samba yet, to fix it change the value to 0x1 (NTLMv2 if available, if not use an older version).

After that you must reboot windows station.

Print Screen on X11

import -window root printscreen.jpg

Setup Windows desktop to see your domain name configured on
FreeBSD server, before DNS will propagate to the Internet
Edit c:\Windows\system32\Drivers\etc\hosts file and add the following:       localhost
80.x.y.z    www.example.com

Then you will be able to see www.example.com as if DNS was working.

Last Updated ( Monday, 18 August 2008 )

Other BSD Systems





Best BSD firewall?