pand --listen --role NAP && \ ifconfig bnep0 10.2.0.1 netmask 255.255.255.0 client: pand --nodetach --role PANU --search --encrypt && \ ifconfig bnep0 10.2.0.2 netmask 255.255.255.0 server: iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE echo 1 > /proc/sys/net/ipv4/ip_forward # then bridge the networks brctl addbr br0 brctl addif br0 bnep0 brctl addif br0 eth0 ifconfig eth0 0.0.0.0 ifconfig bnep0 0.0.0.0 ifconfig br0 192.16.1.60 netmask 255.255.255.0 route add default gw 192.168.1.1 # then setup the client with a 192.168.1.* address with gw 192.168.1.1