Results 1 to 6 of 6

Thread: ICS with knoppix running from CD

  1. #1
    Junior Member
    Join Date
    Dec 2003
    Posts
    4

    ICS with knoppix running from CD

    Is is possible to set up ICS with knoppix running from CD (Knoppix PC is connected to the internet (= server) and a 2nd PC (Windows 98 SE) sharing this internet connection?
    (The PC with knoppix normally runs w2k and the sharing between w2k and w98 is no problem) Knoppix 3.3 has a DHCP server but is it possible to run this without a HD install? I'd like a setup without having to change the settings on the w98 SE machine.
    When w2k is running the eth0 has IP 192.168.0.1
    I AM a Linux newbie!

  2. #2
    Senior Member registered user
    Join Date
    Jun 2003
    Posts
    611
    On the winxp ics server side:
    Right click the home netcard > properties, CHECK "Internet Protocol (TCP/IP)", then click on properties > check "Use the following IP address" and input 192.168.0.1 as ip, and
    255.255.255.0 as subnet mask, other fields are left blank.

    On the knoppix client side:
    ifconfig eth0 192.168.0.200 netmask 255.255.255.0 up
    route add default gw 192.168.0.1 eth0
    echo nameserver 192.168.0.1 >> /etc/resolv.conf


    That is how to make knoppix be an ICS client. Sounds like you want to make knoppix into a gateway/router though...

  3. #3
    Junior Member
    Join Date
    Dec 2003
    Posts
    4
    I guess I wasn't clear enough in my questioning.

    The PC connected to the internet normally runs w2k and is the server for the ICS for the windows 98 PC. (both PC's can use the same internet connection) When I'm running Knoppix (from CD!) on the w2k machine, there is NO more internet connection for the w98 PC.
    I want the w98 machine to be able to use the internet connection, but since w2k isn't running, it's Knoppix that should do the job. The Knoppix (w2k) PC has 2 nic's: 1 for the internet connection (eth0) (sorry, I had this wrong in my 1st mail) and 1 for the connection with the w98 (eth1 with ip 192.168.0.1) The w98 PC has 1 nic. When w2k is running the w98 PC always gets it's IPassigned automatically 192.168.0.134 (I don't know why this is not 192.168.0.2 as I should expect but I'm absolutely not an expert in these things)

  4. #4
    Junior Member registered user
    Join Date
    Nov 2003
    Posts
    14
    Well, I am just learning networking for a few months, but as nobody answered this I'll give it a shot.
    The most simplest way is to use knoppix-terminalserver already built into knoppix CD.
    You can run it from K=> KNOPPIX => Services => Start Knoppix Terminal Server.
    But before starting it, it would be best to (re)configure your eth1 card manually.
    Seeing your IP addresses I assume you are behind a router, which means your nic (eth0) goes to the router and not to WAN directly.
    That also means that router configure your eth0 IP address, which is 192.168.0.1 and it has a range (DHCP) of IP numbers in that network: 192.168.0.x, with the most probable mask 255.255.255.0, so all 255 last octet numbers are a kind of reserved.
    Now if you configure eth1 in the same range, you will get at least a high probability of conflicting with the router and probably even impossible routing.
    There are more ways of solving this; either subnetting behind router or much better in your case, manually configuring eth1 for another subnetwork.
    Try issuing this command: "ifconfig eth1 172.31.100.100 broadcast 172.31.100.255 netmask 255.255.255.0" . Without quotes, of course.
    Now start terminalserver from knoppix which automates some processes.
    In Setup, select eth1 (going to win98 machine), accept proposed IP range (starting 172.31.100....) and then select your network card in win98 machine. Leave the first three options checked as they are (just click) OK and for the rest few options keep also clicking OK.
    You don't have to do anything else, your new router should be running.
    Just to be sure, in DOS prompt on w98, check IP address with "ipconfig x", x being your eth number in w98, probably 0.
    (note, in linux it is "ifconfig" command). It should be 172.31.100.250 or so. If not you have to release and restart dhcp (obtain IP address automatically should be checked in TCP/IP tab, in w98, networks section, nic).
    To do this use again "ipconfig x /release" and then "ipconfig x /renew".
    Now you should have access to the outer space too.
    Success.

  5. #5
    Junior Member
    Join Date
    Dec 2003
    Posts
    4
    I found this solution and it seems to work. But I don't know if it's safe?

    ifconfig eth1 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0

    modprobe ipt_MASQUERADE
    iptables -F; iptables -t nat -F; iptables -t mangle -F
    iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward

  6. #6
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    Quote Originally Posted by Pinoccio
    I found this solution and it seems to work. But I don't know if it's safe?

    ifconfig eth1 192.168.0.1 broadcast 192.168.0.255 netmask 255.255.255.0

    modprobe ipt_MASQUERADE
    iptables -F; iptables -t nat -F; iptables -t mangle -F
    iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
    echo 1 > /proc/sys/net/ipv4/ip_forward
    Try ShieldsUP! from Gbison Research to probe your ports and see if any are open they should all be closed or better yet stealth. Arno's Iptables Firewall is a script for iptables that you should be able to run from the ramdisk as long as you modify the path where it looks for the configuration file and change the default eth0 that is in it for for the gateway to the internet the files are well documented with comments so you should have few problems.

Similar Threads

  1. KNOPPIX running from CD
    By nteixeira in forum General Support
    Replies: 7
    Last Post: 12-29-2004, 06:53 PM
  2. Running Knoppix
    By Skaman in forum General Support
    Replies: 1
    Last Post: 10-19-2004, 01:39 AM
  3. Running Knoppix off of the cd....
    By marcmdm in forum Hardware & Booting
    Replies: 4
    Last Post: 08-30-2004, 03:01 PM
  4. Knoppix not running right
    By linuxknewb in forum General Support
    Replies: 1
    Last Post: 08-21-2004, 05:37 PM
  5. Running Knoppix in without the X Server running....
    By Raineri in forum General Support
    Replies: 2
    Last Post: 09-24-2003, 10:46 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
  •  


Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM picture

Gigabyte 4U AI Server 10x Nvidia GPU 2x Xeon Gold 6150 36 Core 2.7GHz DDR4 RAM

$1625.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001 picture

867959-B21 HPE ProLiant DL360 G10 CTO Server W/ 2x 865414-B21 1x 840140-001

$245.00



Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb picture

Dell Poweredge R630 2x Xeon E5-2680 v3 2.5ghz 24-Cores / 64gb / Raid / 2x 1Tb

$374.99



Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W picture

Dell PowerEdge C4130 1U AI GPU Server | 2x E5-2680 v3 | 32gb Ram | 2x 1600W

$409.99



Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD picture

Dell PowerEdge R730XD 28 Core Server 2X Xeon E5-2680 V4 H730 32GB RAM No HDD

$378.93



Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p picture

Dell EMC PowerEdge R740 8 Bay Server w/ 32GB RAM 2x GOLD 6132 2x 1600W PSU H730p

$499.88



Dell PowerEdge R640  8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU picture

Dell PowerEdge R640 8xSFF Server Barebone 2 x Heat Sink w / 2x 1100W PSU

$315.00



Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed picture

Microsoft Windows Server 2025 Standard 64Bit 16 Core-50 CALs DVD With Key Sealed

$41.19



RDS CAL - Remote Desktop Services Windows Server 2022 50 User/Device Connections picture

RDS CAL - Remote Desktop Services Windows Server 2022 50 User/Device Connections

$60.00