0
0
Using wired connections from you tablet.
From http://tonikitoo.blogspot.com/2008/10/using-wired-
Posted on 2008-10-05 17:20:00 UTC.
This hack was originally needed mainly because I am usually under a proxied network at work, and for some security issues this connection can not be broadcast'ed by access points or routers, but I do want my tablet connected to the same wired network of my desktop.
So that is my way of doing that:
1. On the desktop, setup an adhoc connection manually using the pc's wlan interface (eth1).
2. And enable ip_forward in order make it to bridge to the wired network interface (eth0).
For (1) and (2) I use to use the following bash script (to be ran as root):
iwconfig eth1 essid tonikitoo mode ad-hoc key off
ifconfig eth1 10.0.0.1 netmask 255.255.255.0
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
3. Set an ad hoc connection in the tablet as following (sshots taken by using system's Connection Manager):
Note: the SSID (also 'tonikitoo' here) has to match to the essid value set in line #2 of the pc script above.Also note the value 'ad hoc' in 'network mode'.
Note2: Set proper 'Security method' here.
If your wired connection is under a proxy, set the same proxy address for your adhoc (in Advanced Settings palette).Note: if the wired network requires no proxy, just ignore this step.

Set your ip, router and dns.
note: 'IP address' has to be in the same network of 'Router'.
note2: The IP set in 'Router' has to match the IP set in line #3 of the pc script above.
note3: 'Primary DNS address' has to match your pc's one (run 'cat /etc/resolv.conf' on the pc to check that).
Maybe this can help someone else, maybe not ... Maybe someone wants the tablet to be adhoc'ed to his laptop and also sharing its connection (wired, ppp, usb), maybe not ...
--Antonio Gomes
note: 'IP address' has to be in the same network of 'Router'.
note2: The IP set in 'Router' has to match the IP set in line #3 of the pc script above.
note3: 'Primary DNS address' has to match your pc's one (run 'cat /etc/resolv.conf' on the pc to check that).
Maybe this can help someone else, maybe not ... Maybe someone wants the tablet to be adhoc'ed to his laptop and also sharing its connection (wired, ppp, usb), maybe not ...
--Antonio Gomes

