I have a BT5 installed on a netbook. I am trying to share my wireless connection to my ethenert port so that i can connect other devices to my netbook.
I have tried many guides but nothing worked with BT5. I searched the forum but haven't found anything. Any advices?
Back|track giving machine guns to monkeys since 2007 !
Do not read the Wiki, most your questions will not be answered there !
Do not take a look at the: Forum Rules !
Then just statically assign an IP from the 192.168.25.0/24 subnet (or whatever you want to use) to the device you'll be plugging into eth0. Never tried this in BT5, but I've used it in BT4 among other linux distros.Code:echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE ifconfig eth0 192.168.25.1/24
If you're feeling adventurous you could even configure a DHCP server for eth0, but I never do.
Also, I've seen in some other threads that the module iptable_nat may need to be loaded. Again I have not yet attempted this with BT5, but BT4 did not require this.
Last edited by iproute; 07-05-2011 at 02:42 PM.
Logically(I didn't tested it), the gateway would be the static IP on the wired NIC in BT5. But you have to use another DNS, not the gateway's IP. You have to put the DNS which the BT5 uses. BT5 can't resolve the names for the connected device if it doesn't have a DNS server installed.
Regards
Great minds have purposes, others have wishes
Sorry, I should've specified. Yes, you could set this on the connected device
IP: 192.168.25.25
subnet 255.255.255.0
GW 192.168.25.1
and for DNS, you could just set 8.8.8.8 on the connected device.
8.8.8.8 is the DNS from google. I don't know if he want to let google know every site he visits. Maybe 4.4.2.2 is better(openDNS)
Great minds have purposes, others have wishes
can it be done wired as well with the 2nd Ethernet port on PC?
i have tried solutions from the internet but they either break my internet connection or return errors in terminal