Results 1 to 5 of 5

Thread: IP masquerading

Hybrid View

  1. #1
    Junior Member
    Join Date
    Apr 2003
    Posts
    3

    IP masquerading

    Is it possible to use the Knoppix for IP-masquerading using the ipfwadm?
    According to my experience it is not:

    root@ttyp1[/]# ipfwadm
    Generic IP Firewall Chains not in this kernel

    BUT, I am a greenhorn in Linux, so it may be my fault.
    Where is the truth?

    Thank You

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    colorado springs, colorado
    Posts
    1,933
    That command doesn't work for me either. I have an ipchains based Linux router that I use for ipmasquerading/DHCP server. Before i built the router I used a very easy to configure program called firestarter.
    Here is their homepage so you can see what you're getting and read the manual.
    http://firestarter.sourceforge.net/index.php
    Knoppix 3.2 has iptables installed already. You will however have one dependency. So.............If you want to share your internet connection AND get a firewall at the same time do this in a terminal:

    su
    <password>
    apt-get install libpanel-applet0
    apt-get install firestarter
    firestarter

    In case you are unaware 'libpanel-applet0' is the dependency mentioned above.
    That should get you some ipmasquerading action and get you shored up security wise at the same time.

  3. #3
    Senior Member registered user
    Join Date
    Jan 2003
    Location
    Podunk, Idaho, USA
    Posts
    470
    First you'll have to load the ipchains module:

    modprobe ipchains

    then you'll have to configure ipchains, are you running a hd install or from cd?
    If you are running from a hd install I'd look into the shorewall package (also shorewall-doc).

    rock

  4. #4
    Member registered user
    Join Date
    Nov 2002
    Posts
    85
    Well, thats weird, i just setup this today. You have to use iptables now.
    I have a dialup connection that i'm using and installed copy of knoppix as a router, and a squid caching server.
    here is the line that will do masquerading

    iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

    you will also need to turn on forwarding (very important)

    echo 1 > /proc/sys/net/ipv4/ip_forward

    replace ppp0 with the port you want to nat to. I'm using dial up so i want to masq to my dialup connection

    enjoy!

  5. #5
    Junior Member
    Join Date
    Apr 2003
    Posts
    3
    thank you
    this one with iptables works.

Posting Permissions

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


🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡ picture

🔀 Juniper Networks EX2300-C-12P 12× Gigabit PoE+ • 2× 10G SFP+ Compact Switch ⚡

$119.00



Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P picture

Juniper EX2300 12-Port Gigabit PoE+ Managed Network Switch P/N: EX2300-C-12P

$149.99



Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch picture

Juniper Networks EX2300-48P 48-Port Gigabit PoE Managed Ethernet Switch

$79.99



Juniper Networks EX3400-24T 24-Port Ethernet Switch w/Power Cord picture

Juniper Networks EX3400-24T 24-Port Ethernet Switch w/Power Cord

$174.99



Juniper SRX320 8-Port Security Services Gateway Appliance w/ AC Adapter picture

Juniper SRX320 8-Port Security Services Gateway Appliance w/ AC Adapter

$59.99



Juniper  QFX5200-32C-AFO 32x100 Gigabit QSFP28 Switch picture

Juniper QFX5200-32C-AFO 32x100 Gigabit QSFP28 Switch

$2250.00



Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p picture

Juniper EX2300-C 12 Port Compact Gigabit Switch EX2300-C-12p

$99.99



Juniper NFX250-S2 Network Services Platform picture

Juniper NFX250-S2 Network Services Platform

$199.89



Juniper QFX5100-96S-AFI FP+/SFP PORTS 8QSFP+ PORTS REDUNDANT FANS 2x PS picture

Juniper QFX5100-96S-AFI FP+/SFP PORTS 8QSFP+ PORTS REDUNDANT FANS 2x PS

$249.95



Juniper EX Series EX2300-C-12P - switch - 12 ports - managed picture

Juniper EX Series EX2300-C-12P - switch - 12 ports - managed

$304.00