Internet Connection Sharing
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?
Re: Internet Connection Sharing
Quote:
Originally Posted by
Pomolo
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?
Do you have ip forwarding enabled ?
Re: Internet Connection Sharing
Quote:
Originally Posted by
sickness
Do you have ip forwarding enabled ?
Yes i have ip forward enabled.
I even tried to use firestarter which has been successful with other distributions but nothing seems to work with BT5
Re: Internet Connection Sharing
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
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.
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.
Re: Internet Connection Sharing
Quote:
Originally Posted by
iproute
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
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.
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.
What settings should i have in the connected device? Which will be the default gateway? The static eth0 ip?
Re: Internet Connection Sharing
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
Re: Internet Connection Sharing
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.
Re: Internet Connection Sharing
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)
Re: Internet Connection Sharing
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
Re: Internet Connection Sharing
Quote:
Originally Posted by
iproute
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
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.
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.
You are a life saver, worked perfectly. And for those of you who derped this a few dozen times like me, be sure that you copy and paste the code and don't try line by line to manually enter lol.