![]() |
2010-06-10
, 14:59
|
Posts: 10 |
Thanked: 0 times |
Joined on Mar 2010
|
#171
|
![]() |
2010-06-11
, 20:00
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#172
|
Slight bump here... If this isn't easy to work out, would it be possible to post some documentation on doing basic NAT through the USB connection? I tried simply reversing the host/cellphone instructions for the USB-->PC-->Internet wiki page, but if PC-->USB-->N900-->Internet would be available, that'd be grand as well.
![]() |
2010-06-11
, 20:15
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#173
|
![]() |
2010-06-13
, 00:58
|
Posts: 17 |
Thanked: 2 times |
Joined on Apr 2010
|
#174
|
![]() |
2010-06-13
, 03:50
|
Posts: 42 |
Thanked: 27 times |
Joined on Jun 2010
|
#175
|
#!/bin/sh GATEWAY="gprs0" INTERFACE="wlan0" IP="192.168.201.1" KEY="1234567890123" ESSID="test" IGNORE_INTERFACE="lo usb0" if [[ -f /tmp/dnsmasq.${INTERFACE}.pid ]]; then echo "dnsmasq pid found, killing it" kill $(cat /tmp/dnsmasq.${INTERFACE}.pid) fi ifconfig ${INTERFACE} down iwconfig ${INTERFACE} mode ad-hoc iwconfig ${INTERFACE} channel auto ifconfig ${INTERFACE} up ifconfig ${INTERFACE} ${IP} iwconfig ${INTERFACE} key s:${KEY} iwconfig ${INTERFACE} essid ${ESSID} dnsmasq -a ${IP} -d -i ${INTERFACE} -z -C /etc/dnsmasq.${INTERFACE}.conf $(for i in ${IGNORE_INTERFACE}; d iptables -t nat -A POSTROUTING -o ${GATEWAY} -j MASQUERADE PID=${!} echo ${PID} > /tmp/dnsmasq.${INTERFACE}.pid
![]() |
2010-06-13
, 07:48
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#176
|
DEBUG: Command output: sh: insmod: not found
...
Exception: Command 'insmod /lib/modules/2.6.28.10power37/nf_conntrack.ko' returned with code 32512 (0 expected)
![]() |
2010-06-13
, 10:44
|
Posts: 17 |
Thanked: 2 times |
Joined on Apr 2010
|
#177
|
![]() |
2010-06-13
, 12:18
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#178
|
DEBUG: executing /usr/sbin/dnsmasq -i wlan0 -a 10.246.211.1 -I lo -z -x /var/run/dnsmasq.wlan0.pid --dhcp-range=10.246.211.10,10.246.211.100,6h --dhcp-option=3,10.246.211.1 --dhcp-option=6,10.246.211.1
DEBUG: Command output:
dnsmasq: failed to bind listening socket for fe80::ee9b:5bff:fe01:f6d3: Address already in use
...
Exception: Command '/usr/sbin/dnsmasq -i wlan0 -a 10.246.211.1 -I lo -z -x /var/run/dnsmasq.wlan0.pid --dhcp-range=10.246.211.10,10.246.211.100,6h --dhcp-option=3,10.246.211.1 --dhcp-option=6,10.246.211.1' returned with code 512 (0 expected)
![]() |
2010-06-13
, 15:28
|
Posts: 17 |
Thanked: 2 times |
Joined on Apr 2010
|
#179
|
![]() |
2010-06-13
, 21:05
|
Posts: 540 |
Thanked: 288 times |
Joined on Sep 2009
|
#180
|