Gentoo Archives: gentoo-dev

From: Jeremiah Benham <jjbenham@×××××.com>
To: Samir Patel <mepython@×××××.com>, gentoo-dev@g.o
Subject: Re: [gentoo-dev] IP_MASQ
Date: Mon, 24 Jun 2002 10:43:06
Message-Id: 20020624154254.53818.qmail@web10006.mail.yahoo.com
In Reply to: [gentoo-dev] IP_MASQ by Samir Patel
1 Try this after you make sure you have ipchains and
2 ipfiltering and forwarding enabled in your kernel:
3
4 you need to modprobe ipchains
5 ifconfig eth1 192.168.0.1
6 ipchains -A forward -i eth0 -s 192.168.0.0/24 -j MASQ
7 #iptables -A FORWARD -0 eth0 -s 192.168.0.0/24 -j
8 MASQUERADE
9 #iptables -A FORWARD -p tcp --syn -m limit --limit 1/s
10 -j ACCEPT
11
12
13
14 echo 1 > /proc/sys/net/ipv4/ip_forward
15 note the commented out iptables thing. It is prefered
16 to use iptables but I only know how to use ipchains.
17 If you figure out how to do this with iptables please
18 tell me.
19
20 Jeremiah
21 --- Samir Patel <mepython@×××××.com> wrote:
22 > I am running server at home with 2 ethernet card - 1
23 > for my private network and other is to connect to
24 > WAN.
25 > From my server I can go through internet fine, but
26 > from my client machine, I can not connect to
27 > internet.
28 > Client machine can ping my servers' WAN and LAN card
29 > but can not ping anything outside. Any leads to
30 > resolve this problem? (I have turn on ip_formward
31 > in proc)
32 >
33 > __________________________________________________
34 > Do You Yahoo!?
35 > Yahoo! - Official partner of 2002 FIFA World Cup
36 > http://fifaworldcup.yahoo.com
37 > _______________________________________________
38 > gentoo-dev mailing list
39 > gentoo-dev@g.o
40 > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
41
42
43 __________________________________________________
44 Do You Yahoo!?
45 Yahoo! - Official partner of 2002 FIFA World Cup
46 http://fifaworldcup.yahoo.com

Replies

Subject Author
Re: [gentoo-dev] IP_MASQ Mezei Zoltan <mz269@××××××××××××××.hu>