View Single Post
Posts: 2 | Thanked: 2 times | Joined on Jul 2010
#8
Added dnsmasq to the mix and it can fully act as a router servicing both DHCP and DNS to the PC making network connection fully automatic on the PC side.

And to finish it making the setup permanent I added the following in /usr/sbin/pcsuite-enable.sh:

Code:
ifup usb0
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -t nat -F POSTROUTING
iptables -t nat -A POSTROUTING -j MASQUERADE
dnsmasq -I lo -z -a 192.168.2.15 -F 192.168.2.64,192.168.2.127
got the idea of /usr/sbin/pcsuite-enable.sh from a related wiki post.

/etc/network/interfaces is configured like discussed before:

Code:
auto usb0
iface usb0 inet static
        address 192.168.2.15
        netmask 255.255.255.0
        # gateway 192.168.2.14

Last edited by HenrikNordstrom; 2010-07-07 at 19:37.
 

The Following User Says Thank You to HenrikNordstrom For This Useful Post: