Results 1 to 7 of 7

Thread: How can I sharing internet in Knoppix 5.0 with GUI/textmode?

  1. #1
    Junior Member
    Join Date
    Oct 2006
    Posts
    4

    How can I sharing internet in Knoppix 5.0 with GUI/textmode?

    Everybody can help me to sharing internet in Knoppix 5.0?? I use a computer that has 2 LAN card. LAN 1 (the IP 192.168.1.2) is connect to Internet (ADSL) use (the IP 192.168.1.1) and LAN 2 (the IP 192.168.0.3) is connect to network. My client computer is use Win XP that use DHCP. How can I sharing that?

  2. #2
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    With those addresses it looks like you already have a router, perhaps included in the modem. I would strongly suggest that, if you don't have multiple etherne ports on the modem and don't have a seperate router) you add a hub or a network switch (mutlti-port hub like device, no physical toggling of switches involved) between the computer and the modem and plug your other computers into that. While Linux can act as a router and pass along the connection, there is overhead and issues why you wouldn't want to do that and a switch or hub should be very inexpensive and is intended to do just this.

  3. #3
    Junior Member
    Join Date
    Oct 2006
    Posts
    4
    I already have a hub that has 8 port. Actually I don't understand your answer because I'm newbie in Linux. From eth1 is connect to Hub and there are 6 client connect the hub. So I can't sharing the Internet connection to the client computer from ADSL internet connection through Knoppix.

  4. #4
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Quote Originally Posted by cishpix
    I already have a hub that has 8 port. Actually I don't understand your answer because I'm newbie in Linux. From eth1 is connect to Hub and there are 6 client connect the hub. So I can't sharing the Internet connection to the client computer from ADSL internet connection through Knoppix.
    I don't think this has much to do with being a Linux newbie, it's basic networking, should be understandable by someone who only runs Windows, but runs on multiple systems. Glad to hear that you already have a hub, but you still haven't picked up on the thought that it would be helpful to tell us about your complete network (for example, we still don't know what DSL modem you have and can only guess from the IP addresses that you show that it has a router built in).

    Assuming the modem includes a router then the setup should be very clear, the phone line comes into the dsl modem/router. That has an ethernet connector on it that goes to the hub. Other ports on the hub fan out to all of your computers. All computers can use the Internet connection at once, thanks to the router. No computer passes the connection through it to another computer, no "sharing" is done through Knoppix. I'm hard pressed to understand what the actual problem is. I expect something isn't working as expected but you don't give the information to tell what that is or even to understand what is not happening that you think should.

  5. #5
    Junior Member
    Join Date
    Oct 2006
    Posts
    4
    To make you understand about my problem (Sharing Internet connection from Knoppix to other computer), you can see in the below

    |
    |
    | phone line
    |
    |
    --------------------------------------
    | ADSL Router/Modem |
    | 4 Port Swtich |
    --------------------------------------
    | 192.168.1.1
    |
    |
    |
    | 192.168.1.2
    --------------------------------------
    | Computer with Knoppix 5.0.1 |
    --------------------------------------
    |
    |
    | 192.168.0.1
    |
    |
    --------------------------------------
    | Hub with 8 port |
    --------------------------------------
    |
    |
    | to Client Computer
    |
    |
    --------------------------------------
    | 6 Client Computer use Win XP |
    | that use DHCP |
    --------------------------------------


    Ok, I think it can make you understand. I’ll do it because I want to block the adult web so that the client cannot go it because the people that use the client computer is my student. If I use Win XP to sharing the Internet Connection is so very easy but cannot block the adult web. So I'll use Knoppix to sharing it and just use IPTABLE can block it.

    Sorry, if my English isn't good and sorry too if my problem is so difficult.

  6. #6
    Administrator Site Admin-
    Join Date
    Apr 2003
    Location
    USA
    Posts
    5,441
    Well, we are making some progress, I finally understand what you want to do. You basically want to use Linux as a second router and add some rules for blocking addresses (and perhaps for blocking some services). I assume that you realize that you would need two eithernet interfaces in the Linux box to do this. As to doing it in Knoppix, I don't know of any software included on the Knoppix CD to let you do this. That's not to say that it's not there, might even be on the DVD, but doing it with Knoppix seems to me to be doing it the hard way. There are plenty of Linux distros that focus on being routers, it would strike me as more desirable to use one of those as a starting point. I'll make a couple of suggestions below.

    Understand, of course, that there are some issues in doing this. Since you already seem to have a NAT router in that upstream modem, if that router can't be disabled then you'll be setting up a "double NAT" situation. While you be able to apply access rules and restrict access to some sites, the double NAT may cause you other problems with some applications, including web based games, VOIP applications like Skype and particularly Net Meeting (which didn't do all that well even with single NAT) IM applications, and other application, particularly applications that require inbound traffic from unexpected IP addresses to the application.

    My first site to go to would have been www.linuxrouter.org, but it doesn't seem to be in operation at this time. You might want to try the Live CD router here. There is also a Linux router here. I know there is even a router that is available as a bootable floppy, but I'm having trouble locating it. Perhaps now that we know what your attention is someone else who knows more about Linux routers can suggest something that can be used under Knoppix, but I hope I've given you some things to look at while you wait for that to happen. Beyond that Google should allow you to find plenty of info.

  7. #7
    Junior Member
    Join Date
    Oct 2006
    Posts
    4
    I can solve my problem with your idea so I thanks for you, but I still have a problem. Can you help me? Before I write my the solution, the first I must have a linux such as floppyfw or livecd router from the Internet. I use floppyfw 3.0 or livecd router 2.0.10.

    The solution is:
    1. # ifconfig eth0 192.168.1.2 netmask 255.255.255.0
    2. # ifconfig eth1 192.168.0.1 netmask 255.255.255.0
    3. # echo "1" > /proc/sys/net/ipv4/ip_forward
    4. # vi /etc/resolv.conf (write your ip nameserver)
    5. # route add default gw 192.168.1.1
    6. # route add 192.168.1.0 gw 192.168.1.1
    7. # route add 192.168.0.0 gw 192.168.0.1
    8. # iptables -t nat -A POSTROUTING -s 192.168.0.0/16 -d! 10.10.0.0/16 -j MASQUERADE (I don't understand about this line, can you explain it?)

    Maybe someone can do it if you have a problem like me, but I still can't do my solution in Knoppix or RedHat and I must give IP address (manual) for the client computer (anyone can help me??)

Similar Threads

  1. Internet sharing?
    By morfar in forum Networking
    Replies: 2
    Last Post: 09-09-2004, 02:53 AM
  2. Sharing Internet Connection with Knoppix
    By iisatrini in forum Networking
    Replies: 2
    Last Post: 03-09-2004, 09:07 PM
  3. Replies: 2
    Last Post: 02-11-2004, 02:26 AM
  4. Replies: 12
    Last Post: 10-07-2003, 10:36 PM
  5. Replies: 2
    Last Post: 06-11-2003, 09:33 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
  •  


For Samsung Galaxy Tab A9 Plus 11 Inch 2023 Tablet Case Multi-Angle Stand Cover picture

For Samsung Galaxy Tab A9 Plus 11 Inch 2023 Tablet Case Multi-Angle Stand Cover

$14.39



Samsung - S Pen Creator Edition - White picture

Samsung - S Pen Creator Edition - White

$38.00



Samsung E1720NR LCD Monitor picture

Samsung E1720NR LCD Monitor

$20.00



Samsung Galaxy Tab A9+ 11.0

Samsung Galaxy Tab A9+ 11.0" 64GB Gray Wi-Fi Tablet Bundle SM-X210NZAYXAR 2023

$149.99



Samsung Chromebook XE350XBA-K05US 15.6

Samsung Chromebook XE350XBA-K05US 15.6" 1080p FHD Laptop Intel 4GB RAM 128GB SSD

$89.20



Samsung Galaxy Tab S2 SM-T710 32GB Wi-Fi 8

Samsung Galaxy Tab S2 SM-T710 32GB Wi-Fi 8" Android Tablet - Black

$42.99



Samsung Chromebook 3 4GB 16GB SSD 11.6-Inch Laptop  XE500C13-K02US HDMI WIFI picture

Samsung Chromebook 3 4GB 16GB SSD 11.6-Inch Laptop XE500C13-K02US HDMI WIFI

$39.59



Samsung Galaxy Tab S9/ S9 FE Book Cover Keyboard - Black picture

Samsung Galaxy Tab S9/ S9 FE Book Cover Keyboard - Black

$102.99



Samsung Galaxy Note GT-N8013 16GB Wi-Fi 10.1

Samsung Galaxy Note GT-N8013 16GB Wi-Fi 10.1" Tablet- Tablet Only

$50.98



Samsung Galaxy Tab A8 10.5 Tablet 64GB GRAY WiFi SM-X200NZAEXAR picture

Samsung Galaxy Tab A8 10.5 Tablet 64GB GRAY WiFi SM-X200NZAEXAR

$144.99