The following lines can be used to exchange the behaviour of the LAN port to a WAN port
cp /etc/config/network /etc/config/network.backup uci set network.wan=interface uci set network.wan.ifname=$( uci get network.lan.ifname ) uci set network.wan.macaddr=$( uci get network.lan.macaddr ) ## this line is needed at VoCore uci set network.wan.proto=dhcp uci del network.lan.ifname uci commit
Everytime you want to have internet access, you need to switch the dns resolution off. If you don't do this step, the box will resolve always its own IP address.
/etc/init.d/piratebox nodns
You may add this line above the exit
command in /etc/rc.local
.
No special setup needed, maybe see “Additional steps on already installed PirateBox”