Results 1 to 10 of 10

Thread: Internet Connection Sharing

Hybrid View

  1. #1
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    3

    Default 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?

  2. #2
    Administrator sickness's Avatar
    Join Date
    Jan 2010
    Location
    Behind the screen.
    Posts
    2,921

    Default Re: Internet Connection Sharing

    Quote Originally Posted by Pomolo View Post
    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 ?
    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 !

  3. #3
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    3

    Default Re: Internet Connection Sharing

    Quote Originally Posted by sickness View Post
    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

  4. #4
    Senior Member iproute's Avatar
    Join Date
    Jan 2010
    Location
    Midwest, USA
    Posts
    192

    Default 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.
    Last edited by iproute; 07-05-2011 at 02:42 PM.

  5. #5
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    3

    Default Re: Internet Connection Sharing

    Quote Originally Posted by iproute View Post
    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?

  6. #6
    Senior Member
    Join Date
    Jan 2010
    Posts
    107

    Default 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
    Great minds have purposes, others have wishes

  7. #7
    Just burned their ISO
    Join Date
    Feb 2013
    Posts
    1

    Default Re: Internet Connection Sharing

    Quote Originally Posted by iproute View Post
    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.

  8. #8
    Senior Member iproute's Avatar
    Join Date
    Jan 2010
    Location
    Midwest, USA
    Posts
    192

    Default 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.

  9. #9
    Senior Member
    Join Date
    Jan 2010
    Posts
    107

    Default 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)
    Great minds have purposes, others have wishes

  10. #10
    Just burned his ISO
    Join Date
    Jul 2011
    Posts
    2

    Default 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

Similar Threads

  1. Create Internet Connection Sharing
    By exeption in forum Beginners Forum
    Replies: 5
    Last Post: 11-23-2010, 08:53 PM
  2. Sharing Internet throught ethernet prot
    By TrustNoOne in forum Beginners Forum
    Replies: 1
    Last Post: 03-09-2010, 07:32 PM
  3. wireless Internet Sharing on laptop
    By aurora79 in forum OLD Newbie Area
    Replies: 4
    Last Post: 03-30-2009, 09:18 PM
  4. Internet sharing from wifi to nic
    By luckyblur in forum OLD Newbie Area
    Replies: 0
    Last Post: 10-13-2008, 09:01 PM
  5. Help with internet connection sharing
    By devilsson2010 in forum OLD BackTrack 3 Final
    Replies: 0
    Last Post: 08-24-2008, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •