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
  •  


Acer Aspire 14

Acer Aspire 14" AI Copilot+PC Laptop Core Ultra 5 226V Gen 4 ARC 16GB 1TB Refurb

$475.21



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$316.61



External SSD 1TB 2TB  Portable Hard Drive USB 3.1 Type-C High Speed PC Mac picture

External SSD 1TB 2TB Portable Hard Drive USB 3.1 Type-C High Speed PC Mac

$16.99



LaCie Rugged SSD 1TB Portable SSD USB3.1 Gen2 IP67 Waterproof  picture

LaCie Rugged SSD 1TB Portable SSD USB3.1 Gen2 IP67 Waterproof

$475.00



Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1794.16



Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD picture

Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD

$129.99



Acer Aspire 16 16

Acer Aspire 16 16" Laptop Core Ultra 5 226V S2 16GB RAM 1TB SSD Arc Refurbished

$438.45



1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive picture

1TB Kingston DataTraveler Max DTMAX/1TB USB Type-C Flash Drive

$86.95



SGIN 15.6

SGIN 15.6" Laptop 16GB RAM 1TB SSD Win 11 Intel i3-10100Y Backlit Keyboard FHD

$335.99



NEW 2026 SGIN 18.5

NEW 2026 SGIN 18.5" Laptop Windows 11 PRO Intel N5095 16GB DDR4 1024GB SSD

$444.99