-
help for internet connection sharing???
i need help about ip masquerading...
SERVER: knoppix box (hdd installation)
eth0 (usb) motorola cable modem
eth1 (pci) intel ethernet
HUB: 8 port n-way switch hub
CLIENT(S): win xp box with pci ethernet
ok, that's the what i wanna build...
....SERVER: knoppix box (hd installation)
........................... l
............................l
...........................V
..............HUB: uplink / port 1 / port 2 / port 3...
.......................................l.......... ..l
.......................................l.......... ..l
......................................V........... V
....CLIENTS:.............xp box....xp box
ok, what now?
thanx 4 replies...
-
MASQ
Something like this in your iptables should do the trick.
echo '1' > /proc/sys/net/ipv4/ip_forward
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP
iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCE
PT
iptables -A FORWARD -j ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
I added this to my /etc/default/iptables file, not too sure if it's the correct method but it worked.
Similar Threads
-
By Jwizzman in forum Networking
Replies: 8
Last Post: 09-12-2004, 09:52 PM
-
By iisatrini in forum Networking
Replies: 2
Last Post: 03-09-2004, 09:07 PM
-
By Yeti in forum Networking
Replies: 1
Last Post: 12-09-2003, 06:56 AM
-
By tealeaf in forum Networking
Replies: 3
Last Post: 11-04-2003, 09:56 AM
-
By pfb in forum Networking
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
-
Forum Rules
ORICO 5 Bay Raid USB3.0 to SATA External Hard Drive Enclosure for 3.5'' HDD LOT
$140.79
ORICO 5 Bay Raid Enclosure USB3.0 SATA External Hard Drive Enclosure Up to 80TB
$118.99
Dell EMC 092GD6 Broadcom 9305-16i LSI Quad Port 4 Port SAS RAID Controller
$84.99
OWC Guardian Maximus Raid Enclosure SATA Hard Drive FireWire
$36.99
ASUS Hyper M.2 x16 Gen 4 RAID Card- Used Working
$32.95
WD TB My Book Duo Desktop RAID External Hard Drive 0TB NO DRIVES
$42.00
Dell PERC H330 PCIe 3.0 x8 RAID Storage Controller 4Y5H1 High Profile
$17.99
ACASIS 2.5/3.5 inch 2 Bay SATA USB 3.0 Hard Drive Disk HDD SSD Enclosure 4 RAID
$54.66
3.5" Dual HHD RAID Drive Enclosure - Capacity 36tb with "0" RAID- 2.5" w/Adapter
$37.15
HDD Enclosure USB 3.0 2.5 inch Dual Bay 2*6TB HDD RAID SATA Hard Drive Enclosure
$32.69