Networking Forums

Networking Forums > Computer Networking > Linux Networking > help me to configure my RH 9 for connection sharing..!!

Reply
Thread Tools Display Modes

help me to configure my RH 9 for connection sharing..!!

 
 
Elhanan
Guest
Posts: n/a

 
      01-02-2005, 03:58 PM
hi all

i'm a newbie to linux (natrually) and i'm using RH becouse it's the
stanrard.

my current configuration is this, 4 pc's all windows, connected to a
switch one pc is winxp pro which also has emule and serves as the
dialer sharing for a cable modem.

i wanna transfer the connection to a compaq E500 notebook which will
serve as the router and firewall. the E500 has one internal ethernet
card, and one EDIMAX pcmcia card. both are working fine (although at
boot up linux does bring up automatically the edimax,but ifup does work
with it).

my ISP provided an PPTP connection install script which works, (on both
cards) but from then on, i'm in the dark i've tried several
configuration instuctions (like from RH BIBLE book) and scripts all
leading to the same results, on dmsg i can see the client (win xp)
trying to connec to the router as i see it's ip address (of the winxp
station) sends packets out to an outside ip, but it doesn't get
anything back.

i'm now re-installing rh 9 (from 10nth) time, a typical server
installtions (plus server tools) and if u can help me step by step to
figure out what's going on i'll be very happy.

 
Reply With Quote
 
 
 
 
Mihai Osian
Guest
Posts: n/a

 
      01-03-2005, 12:24 PM
Elhanan wrote:

>hi all
>
>i'm a newbie to linux (natrually) and i'm using RH becouse it's the
>stanrard.
>
>

(offtopic) I wouldn't call any Linux distibution a "standard"...

>my current configuration is this, 4 pc's all windows, connected to a
>switch one pc is winxp pro which also has emule and serves as the
>dialer sharing for a cable modem.
>
>i wanna transfer the connection to a compaq E500 notebook which will
>serve as the router and firewall. the E500 has one internal ethernet
>card, and one EDIMAX pcmcia card. both are working fine (although at
>boot up linux does bring up automatically the edimax,but ifup does work
>with it).
>
>

Personally I wouldn't use a notebook as server, but anyway...

>my ISP provided an PPTP connection install script which works, (on both
>cards) but from then on, i'm in the dark i've tried several
>configuration instuctions (like from RH BIBLE book) and scripts all
>leading to the same results, on dmsg i can see the client (win xp)
>trying to connec to the router as i see it's ip address (of the winxp
>station) sends packets out to an outside ip, but it doesn't get
>anything back.
>
>i'm now re-installing rh 9 (from 10nth) time, a typical server
>installtions (plus server tools) and if u can help me step by step to
>figure out what's going on i'll be very happy.
>
>
>

You can start by showing us the script from your ISP. Also, run the
following commands as root, and tell us the output:

cat /proc/sys/net/ipv4/ip_forward - should display "1". If it displays
"0", that's where the problem is. The way to solve it is by runing
echo 1 > /proc/sys/net/ipv4/ip_forward
ifconfig - displays the IP address of each network interface
route -n - displays the routing table

Also, I recommend deactivating the firewall (if you have one) until you
manage to establish a connection. You can do it like this:
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT
iptables -F
iptables -X

The configuration of your windows machines could be also helpful. The
IP address for example - is it obtained automatically or is it fixed ?.
If it is obtained automatically, you need a DHCP server running on the
Linux box. Then: how exactly did you test if the connection works: with
the web-browser or with a ping to an outside IP address ?

And re-installing is a windoze thing. The nice thing about linux is that
it behaves consistently: if it works today it will work identically
tomorrow. Idem if it doesn't work. You need to configure it, not to
re-install.

Mihai
 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-04-2005, 06:26 AM
cat if_foward reports 1

here is my ifconfig:

eth0 Link encap:Ethernet HWaddr 000:59:1C:99:9A
inet addr:172.23.132.114 Bcast:255.255.255.255
Mask:255.255.224.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2001 errors:0 dropped:0 overruns:0 frame:0
TX packets:782 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:253498 (247.5 Kb) TX bytes:84326 (82.3 Kb)
Interrupt:11 Base address:0x3440 Memory:41280000-41280038

eth1 Link encap:Ethernet HWaddr 00:50:FC:F3:3E:07
inet addr:192.168.1.1 Bcast:192.168.1.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:890 (890.0 b) TX bytes:540 (540.0 b)
Interrupt:11 Base address:0xc000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:7499 errors:0 dropped:0 overruns:0 frame:0
TX packets:7499 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:511595 (499.6 Kb) TX bytes:511595 (499.6 Kb)

ppp0 Link encap:Point-to-Point Protocol
inet addr:84.94.134.2 P-t-P:212.199.26.110
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
RX packets:458 errors:0 dropped:0 overruns:0 frame:0
TX packets:461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:126163 (123.2


here is my route -n:


Destination Gateway Genmask Flags Metric Ref Use
Iface
212.199.26.110 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 212.199.26.110 0.0.0.0 UG 0 0 0
ppp0


here is my iptable:

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


the client has a fixed ip and the dns are hard coded into it.
stil pinging the gatway 212.199.26.28 from the client does yield
results



Mihai Osian wrote:
> Elhanan wrote:
>
> >hi all
> >
> >i'm a newbie to linux (natrually) and i'm using RH becouse it's the
> >stanrard.
> >
> >

> (offtopic) I wouldn't call any Linux distibution a "standard"...
>
> >my current configuration is this, 4 pc's all windows, connected to

a
> >switch one pc is winxp pro which also has emule and serves as the
> >dialer sharing for a cable modem.
> >
> >i wanna transfer the connection to a compaq E500 notebook which will
> >serve as the router and firewall. the E500 has one internal ethernet
> >card, and one EDIMAX pcmcia card. both are working fine (although at
> >boot up linux does bring up automatically the edimax,but ifup does

work
> >with it).
> >
> >

> Personally I wouldn't use a notebook as server, but anyway...
>
> >my ISP provided an PPTP connection install script which works, (on

both
> >cards) but from then on, i'm in the dark i've tried several
> >configuration instuctions (like from RH BIBLE book) and scripts all
> >leading to the same results, on dmsg i can see the client (win xp)
> >trying to connec to the router as i see it's ip address (of the

winxp
> >station) sends packets out to an outside ip, but it doesn't get
> >anything back.
> >
> >i'm now re-installing rh 9 (from 10nth) time, a typical server
> >installtions (plus server tools) and if u can help me step by step

to
> >figure out what's going on i'll be very happy.
> >
> >
> >

> You can start by showing us the script from your ISP. Also, run the


> following commands as root, and tell us the output:
>
> cat /proc/sys/net/ipv4/ip_forward - should display "1". If it

displays
> "0", that's where the problem is. The way to solve it is by runing
> echo 1 > /proc/sys/net/ipv4/ip_forward
> ifconfig - displays the IP address of each network interface
> route -n - displays the routing table
>
> Also, I recommend deactivating the firewall (if you have one) until

you
> manage to establish a connection. You can do it like this:
> iptables -P INPUT ACCEPT
> iptables -P FORWARD ACCEPT
> iptables -P OUTPUT ACCEPT
> iptables -F
> iptables -X
>
> The configuration of your windows machines could be also helpful.

The
> IP address for example - is it obtained automatically or is it fixed

?.
> If it is obtained automatically, you need a DHCP server running on

the
> Linux box. Then: how exactly did you test if the connection works:

with
> the web-browser or with a ping to an outside IP address ?
>
> And re-installing is a windoze thing. The nice thing about linux is

that
> it behaves consistently: if it works today it will work identically
> tomorrow. Idem if it doesn't work. You need to configure it, not to
> re-install.
>
> Mihai


 
Reply With Quote
 
Mihai Osian
Guest
Posts: n/a

 
      01-04-2005, 09:52 AM
I see you have 3 network interfaces (eth0,eth1and ppp0), yet in the
first mail you only talk about 2. Usually ppp0 is a serial line (dial-up
modem), but you say you have a cable modem. Hmm...
Anyway, from what I understand, your ISP's address is 212.199.26.110
and the IP address they assigned you is 84.94.134.2. And from the linux
machine you can connect to internet, right ?
What is the address 212.199.26.28 then ? What address did you assign
to your windows machine ? Which machine/interface is connected to which ?

Mihai

Elhanan wrote:

>cat if_foward reports 1
>
>here is my ifconfig:
>
>eth0 Link encap:Ethernet HWaddr 000:59:1C:99:9A
>inet addr:172.23.132.114 Bcast:255.255.255.255
>Mask:255.255.224.0
>UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>RX packets:2001 errors:0 dropped:0 overruns:0 frame:0
>TX packets:782 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:100
>RX bytes:253498 (247.5 Kb) TX bytes:84326 (82.3 Kb)
>Interrupt:11 Base address:0x3440 Memory:41280000-41280038
>
>eth1 Link encap:Ethernet HWaddr 00:50:FC:F3:3E:07
>inet addr:192.168.1.1 Bcast:192.168.1.255
>Mask:255.255.255.0
>UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
>RX packets:14 errors:0 dropped:0 overruns:0 frame:0
>TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:100
>RX bytes:890 (890.0 b) TX bytes:540 (540.0 b)
>Interrupt:11 Base address:0xc000
>
>lo Link encap:Local Loopback
>inet addr:127.0.0.1 Mask:255.0.0.0
>UP LOOPBACK RUNNING MTU:16436 Metric:1
>RX packets:7499 errors:0 dropped:0 overruns:0 frame:0
>TX packets:7499 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:0
>RX bytes:511595 (499.6 Kb) TX bytes:511595 (499.6 Kb)
>
>ppp0 Link encap:Point-to-Point Protocol
>inet addr:84.94.134.2 P-t-P:212.199.26.110
>Mask:255.255.255.255
>UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
>RX packets:458 errors:0 dropped:0 overruns:0 frame:0
>TX packets:461 errors:0 dropped:0 overruns:0 carrier:0
>collisions:0 txqueuelen:3
>RX bytes:126163 (123.2
>
>
>here is my route -n:
>
>
>Destination Gateway Genmask Flags Metric Ref Use
>Iface
>212.199.26.110 0.0.0.0 255.255.255.255 UH 0 0 0
>ppp0
>212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
>eth0
>192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
>eth1
>172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
>eth0
>169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
>eth1
>127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
>lo
>0.0.0.0 212.199.26.110 0.0.0.0 UG 0 0 0
>ppp0
>
>
>here is my iptable:
>
>Chain INPUT (policy ACCEPT)
>target prot opt source destination
>
>Chain FORWARD (policy ACCEPT)
>target prot opt source destination
>
>Chain OUTPUT (policy ACCEPT)
>target prot opt source destination
>
>
>the client has a fixed ip and the dns are hard coded into it.
>stil pinging the gatway 212.199.26.28 from the client does yield
>results
>
>
>
>Mihai Osian wrote:
>
>
>>Elhanan wrote:
>>
>>
>>
>>>hi all
>>>
>>>i'm a newbie to linux (natrually) and i'm using RH becouse it's the
>>>stanrard.
>>>
>>>
>>>
>>>

>>(offtopic) I wouldn't call any Linux distibution a "standard"...
>>
>>
>>
>>>my current configuration is this, 4 pc's all windows, connected to
>>>
>>>

>a
>
>
>>>switch one pc is winxp pro which also has emule and serves as the
>>>dialer sharing for a cable modem.
>>>
>>>i wanna transfer the connection to a compaq E500 notebook which will
>>>serve as the router and firewall. the E500 has one internal ethernet
>>>card, and one EDIMAX pcmcia card. both are working fine (although at
>>>boot up linux does bring up automatically the edimax,but ifup does
>>>
>>>

>work
>
>
>>>with it).
>>>
>>>
>>>
>>>

>>Personally I wouldn't use a notebook as server, but anyway...
>>
>>
>>
>>>my ISP provided an PPTP connection install script which works, (on
>>>
>>>

>both
>
>
>>>cards) but from then on, i'm in the dark i've tried several
>>>configuration instuctions (like from RH BIBLE book) and scripts all
>>>leading to the same results, on dmsg i can see the client (win xp)
>>>trying to connec to the router as i see it's ip address (of the
>>>
>>>

>winxp
>
>
>>>station) sends packets out to an outside ip, but it doesn't get
>>>anything back.
>>>
>>>i'm now re-installing rh 9 (from 10nth) time, a typical server
>>>installtions (plus server tools) and if u can help me step by step
>>>
>>>

>to
>
>
>>>figure out what's going on i'll be very happy.
>>>
>>>
>>>
>>>
>>>

>> You can start by showing us the script from your ISP. Also, run the
>>
>>

>
>
>
>>following commands as root, and tell us the output:
>>
>>cat /proc/sys/net/ipv4/ip_forward - should display "1". If it
>>
>>

>displays
>
>
>>"0", that's where the problem is. The way to solve it is by runing
>>echo 1 > /proc/sys/net/ipv4/ip_forward
>>ifconfig - displays the IP address of each network interface
>>route -n - displays the routing table
>>
>>Also, I recommend deactivating the firewall (if you have one) until
>>
>>

>you
>
>
>>manage to establish a connection. You can do it like this:
>>iptables -P INPUT ACCEPT
>>iptables -P FORWARD ACCEPT
>>iptables -P OUTPUT ACCEPT
>>iptables -F
>>iptables -X
>>
>> The configuration of your windows machines could be also helpful.
>>
>>

>The
>
>
>>IP address for example - is it obtained automatically or is it fixed
>>
>>

>?.
>
>
>>If it is obtained automatically, you need a DHCP server running on
>>
>>

>the
>
>
>>Linux box. Then: how exactly did you test if the connection works:
>>
>>

>with
>
>
>>the web-browser or with a ping to an outside IP address ?
>>
>>And re-installing is a windoze thing. The nice thing about linux is
>>
>>

>that
>
>
>>it behaves consistently: if it works today it will work identically
>>tomorrow. Idem if it doesn't work. You need to configure it, not to
>>re-install.
>>
>>Mihai
>>
>>

>
>
>

 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-05-2005, 05:52 AM
ppp0 is created after i activate my pptp dial-in script. the cable
modem is connected to eth0. (nocice the route from eth0 to pppo)
i don't know about 212.199.26.110 but i do know that 212.199.26.28 is
my gateway.
notice something else from what basic understanding for routing these
to lines:
212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
eth0

basicallly say i have to subnets 192.168.1.0 on eth1 and 172.23.128.0
on eth0.
one of the computers on 172.23.128.0 acts as the gateway.
from my linux machine can ping 172.23.128.1 but from my windows i
cannot, this should the most basic of fowarding no?



Mihai Osian wrote:
> I see you have 3 network interfaces (eth0,eth1and ppp0), yet in the
> first mail you only talk about 2. Usually ppp0 is a serial line

(dial-up
> modem), but you say you have a cable modem. Hmm...
> Anyway, from what I understand, your ISP's address is

212.199.26.110
> and the IP address they assigned you is 84.94.134.2. And from the

linux
> machine you can connect to internet, right ?
> What is the address 212.199.26.28 then ? What address did you

assign
> to your windows machine ? Which machine/interface is connected to

which ?
>
> Mihai
>
> Elhanan wrote:
>
> >cat if_foward reports 1
> >
> >here is my ifconfig:
> >
> >eth0 Link encap:Ethernet HWaddr 000:59:1C:99:9A
> >inet addr:172.23.132.114 Bcast:255.255.255.255
> >Mask:255.255.224.0
> >UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >RX packets:2001 errors:0 dropped:0 overruns:0 frame:0
> >TX packets:782 errors:0 dropped:0 overruns:0 carrier:0
> >collisions:0 txqueuelen:100
> >RX bytes:253498 (247.5 Kb) TX bytes:84326 (82.3 Kb)
> >Interrupt:11 Base address:0x3440 Memory:41280000-41280038
> >
> >eth1 Link encap:Ethernet HWaddr 00:50:FC:F3:3E:07
> >inet addr:192.168.1.1 Bcast:192.168.1.255
> >Mask:255.255.255.0
> >UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> >RX packets:14 errors:0 dropped:0 overruns:0 frame:0
> >TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
> >collisions:0 txqueuelen:100
> >RX bytes:890 (890.0 b) TX bytes:540 (540.0 b)
> >Interrupt:11 Base address:0xc000
> >
> >lo Link encap:Local Loopback
> >inet addr:127.0.0.1 Mask:255.0.0.0
> >UP LOOPBACK RUNNING MTU:16436 Metric:1
> >RX packets:7499 errors:0 dropped:0 overruns:0 frame:0
> >TX packets:7499 errors:0 dropped:0 overruns:0 carrier:0
> >collisions:0 txqueuelen:0
> >RX bytes:511595 (499.6 Kb) TX bytes:511595 (499.6 Kb)
> >
> >ppp0 Link encap:Point-to-Point Protocol
> >inet addr:84.94.134.2 P-t-P:212.199.26.110
> >Mask:255.255.255.255
> >UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1460 Metric:1
> >RX packets:458 errors:0 dropped:0 overruns:0 frame:0
> >TX packets:461 errors:0 dropped:0 overruns:0 carrier:0
> >collisions:0 txqueuelen:3
> >RX bytes:126163 (123.2
> >
> >
> >here is my route -n:
> >
> >
> >Destination Gateway Genmask Flags Metric Ref

Use
> >Iface
> >212.199.26.110 0.0.0.0 255.255.255.255 UH 0 0

0
> >ppp0
> >212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0

0
> >eth0
> >192.168.1.0 0.0.0.0 255.255.255.0 U 0 0

0
> >eth1
> >172.23.128.0 0.0.0.0 255.255.224.0 U 0 0

0
> >eth0
> >169.254.0.0 0.0.0.0 255.255.0.0 U 0 0

0
> >eth1
> >127.0.0.0 0.0.0.0 255.0.0.0 U 0 0

0
> >lo
> >0.0.0.0 212.199.26.110 0.0.0.0 UG 0 0

0
> >ppp0
> >
> >
> >here is my iptable:
> >
> >Chain INPUT (policy ACCEPT)
> >target prot opt source destination
> >
> >Chain FORWARD (policy ACCEPT)
> >target prot opt source destination
> >
> >Chain OUTPUT (policy ACCEPT)
> >target prot opt source destination
> >
> >
> >the client has a fixed ip and the dns are hard coded into it.
> >stil pinging the gatway 212.199.26.28 from the client does yield
> >results
> >
> >
> >
> >Mihai Osian wrote:
> >
> >
> >>Elhanan wrote:
> >>
> >>
> >>
> >>>hi all
> >>>
> >>>i'm a newbie to linux (natrually) and i'm using RH becouse it's

the
> >>>stanrard.
> >>>
> >>>
> >>>
> >>>
> >>(offtopic) I wouldn't call any Linux distibution a "standard"...
> >>
> >>
> >>
> >>>my current configuration is this, 4 pc's all windows, connected

to
> >>>
> >>>

> >a
> >
> >
> >>>switch one pc is winxp pro which also has emule and serves as the
> >>>dialer sharing for a cable modem.
> >>>
> >>>i wanna transfer the connection to a compaq E500 notebook which

will
> >>>serve as the router and firewall. the E500 has one internal

ethernet
> >>>card, and one EDIMAX pcmcia card. both are working fine (although

at
> >>>boot up linux does bring up automatically the edimax,but ifup does
> >>>
> >>>

> >work
> >
> >
> >>>with it).
> >>>
> >>>
> >>>
> >>>
> >>Personally I wouldn't use a notebook as server, but anyway...
> >>
> >>
> >>
> >>>my ISP provided an PPTP connection install script which works, (on
> >>>
> >>>

> >both
> >
> >
> >>>cards) but from then on, i'm in the dark i've tried several
> >>>configuration instuctions (like from RH BIBLE book) and scripts

all
> >>>leading to the same results, on dmsg i can see the client (win xp)
> >>>trying to connec to the router as i see it's ip address (of the
> >>>
> >>>

> >winxp
> >
> >
> >>>station) sends packets out to an outside ip, but it doesn't get
> >>>anything back.
> >>>
> >>>i'm now re-installing rh 9 (from 10nth) time, a typical server
> >>>installtions (plus server tools) and if u can help me step by step
> >>>
> >>>

> >to
> >
> >
> >>>figure out what's going on i'll be very happy.
> >>>
> >>>
> >>>
> >>>
> >>>
> >> You can start by showing us the script from your ISP. Also, run

the
> >>
> >>

> >
> >
> >
> >>following commands as root, and tell us the output:
> >>
> >>cat /proc/sys/net/ipv4/ip_forward - should display "1". If it
> >>
> >>

> >displays
> >
> >
> >>"0", that's where the problem is. The way to solve it is by runing
> >>echo 1 > /proc/sys/net/ipv4/ip_forward
> >>ifconfig - displays the IP address of each network interface
> >>route -n - displays the routing table
> >>
> >>Also, I recommend deactivating the firewall (if you have one) until
> >>
> >>

> >you
> >
> >
> >>manage to establish a connection. You can do it like this:
> >>iptables -P INPUT ACCEPT
> >>iptables -P FORWARD ACCEPT
> >>iptables -P OUTPUT ACCEPT
> >>iptables -F
> >>iptables -X
> >>
> >> The configuration of your windows machines could be also helpful.
> >>
> >>

> >The
> >
> >
> >>IP address for example - is it obtained automatically or is it

fixed
> >>
> >>

> >?.
> >
> >
> >>If it is obtained automatically, you need a DHCP server running on
> >>
> >>

> >the
> >
> >
> >>Linux box. Then: how exactly did you test if the connection works:
> >>
> >>

> >with
> >
> >
> >>the web-browser or with a ping to an outside IP address ?
> >>
> >>And re-installing is a windoze thing. The nice thing about linux is
> >>
> >>

> >that
> >
> >
> >>it behaves consistently: if it works today it will work identically
> >>tomorrow. Idem if it doesn't work. You need to configure it, not to
> >>re-install.
> >>
> >>Mihai
> >>
> >>

> >
> >
> >


 
Reply With Quote
 
Mihai Osian
Guest
Posts: n/a

 
      01-05-2005, 09:18 AM
Elhanan wrote:

>ppp0 is created after i activate my pptp dial-in script. the cable
>modem is connected to eth0. (nocice the route from eth0 to pppo)
>i don't know about 212.199.26.110 but i do know that 212.199.26.28 is
>my gateway.
>
>

From ifconfig output and the routing table, your ISP has the address
212.199.26.110. This is the gateway used by the Linux machine to get to
the internet. What do you mean by 212.199.26.28 is your gateway ?
Gateway to what/where ?

>notice something else from what basic understanding for routing these
>to lines:
>212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
>eth0
>192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
>eth1
>172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
>eth0
>
>basicallly say i have to subnets 192.168.1.0 on eth1 and 172.23.128.0
>on eth0.
>one of the computers on 172.23.128.0 acts as the gateway.
>from my linux machine can ping 172.23.128.1 but from my windows i
>cannot, this should the most basic of fowarding no?
>
>
>

So eth0 is physically connected to the modem, but is also connected to
the 172.23.128.1 "gateway" ? And there are more computers on the
172.23.128.0 network ? Sorry, I don't understand at all your network
topology. I guess you (or me) are making some big confusions

To repeat my questions:
1. What address did you assign to your windows machine ?
2. Which machine/interface is connected to which ? Please list them all,
or maybe draw a sketch.

Mihai


 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-06-2005, 05:22 AM
ok first i'll be adding my network config file:
NETWORKING=yes
HOSTNAME=localhost.localdomain
FORWARD_IPV4=true
GATEWAYDEV=eth0

212.199.26.28 is what i write in pptp dialer of windows under 'host
name or ip address' field under general tab. it does not change,
212.199.26.110 does change it is now 212.199.26.110 i don't know what
that is.
my windows client ip is 192.168.1.33, it's gateway is 192.168.1.1 (the
linux)

i think 172.23.128.1 is in fact the cable modem, once i do ifup eth0, i
get that ip address.
you see if i'm not mistken i have to go through my cable company and
my isp supplier which are totally different companies. i first get the
ip of my cable company and then the gateway of my ISP which is
212.199.26.28 (or cablepns.012.net.il)

i also did
iptables --table nat --append POSTROUTING --out-interface eth0 -j
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

i can now ping 212.199.26.28 from my client pc or 172.23.128.1, but i
cannot ping 212.199.26.106 or other ip addresses.

as for network topolgy you can see it in:
http://www.iglu.org.il/amit/cable/ i don't use the instructions given
there but a rather a pptp script given to me by my isp.


Mihai Osian wrote:
> Elhanan wrote:
>
> >ppp0 is created after i activate my pptp dial-in script. the cable
> >modem is connected to eth0. (nocice the route from eth0 to pppo)
> >i don't know about 212.199.26.110 but i do know that 212.199.26.28

is
> >my gateway.
> >
> >

> From ifconfig output and the routing table, your ISP has the address


> 212.199.26.110. This is the gateway used by the Linux machine to get

to
> the internet. What do you mean by 212.199.26.28 is your gateway ?
> Gateway to what/where ?
>
> >notice something else from what basic understanding for routing

these
> >to lines:
> >212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0

0
> >eth0
> >192.168.1.0 0.0.0.0 255.255.255.0 U 0 0

0
> >eth1
> >172.23.128.0 0.0.0.0 255.255.224.0 U 0 0

0
> >eth0
> >
> >basicallly say i have to subnets 192.168.1.0 on eth1 and

172.23.128.0
> >on eth0.
> >one of the computers on 172.23.128.0 acts as the gateway.
> >from my linux machine can ping 172.23.128.1 but from my windows i
> >cannot, this should the most basic of fowarding no?
> >
> >
> >

> So eth0 is physically connected to the modem, but is also connected

to
> the 172.23.128.1 "gateway" ? And there are more computers on the
> 172.23.128.0 network ? Sorry, I don't understand at all your network


> topology. I guess you (or me) are making some big confusions
>
> To repeat my questions:
> 1. What address did you assign to your windows machine ?
> 2. Which machine/interface is connected to which ? Please list them

all,
> or maybe draw a sketch.
>
> Mihai


 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-06-2005, 08:21 AM
i've made progress,
i placed
iptables --table nat --append POSTROUTING --out-interface ppp0 -j
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

(the change is that instead eth0 in postrouting i've typed ppp0) i also
removed gatewaydev=ppp0 from network file.

i can now ping the gateway 212.199.26.106 and can also recieve web
pages.
BUT the i cannot recieve all web pages, and while some come up they
come up veeeery slooooowly, and others do not come up at all.

 
Reply With Quote
 
Mihai Osian
Guest
Posts: n/a

 
      01-06-2005, 09:58 AM
That might be a DNS misconfiguration. If you have two or more DNS
servers defined and the first one is wrong, it will wait until it times
out, then it will try the second server. Check how fast it is if you
type in the browser the IP address of the sites that don't work. To get
the IP address use "dig www.site.com" (on linux).

Mihai

Elhanan wrote:

>i've made progress,
>i placed
>iptables --table nat --append POSTROUTING --out-interface ppp0 -j
>MASQUERADE
>iptables --append FORWARD --in-interface eth1 -j ACCEPT
>
>(the change is that instead eth0 in postrouting i've typed ppp0) i also
>removed gatewaydev=ppp0 from network file.
>
>i can now ping the gateway 212.199.26.106 and can also recieve web
>pages.
>BUT the i cannot recieve all web pages, and while some come up they
>come up veeeery slooooowly, and others do not come up at all.
>
>
>

 
Reply With Quote
 
Elhanan
Guest
Posts: n/a

 
      01-06-2005, 09:13 PM
i don't understand what went wrong!! i rebooted linux and now i can't
even ping (from the client machine ) to 192.123.128.1 my rount -n is :

212.199.26.28 172.23.128.1 255.255.255.255 UGH 0 0 0
eth0
212.199.26.111 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth1
172.23.128.0 0.0.0.0 255.255.224.0 U 0 0 0
eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0
eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 212.199.26.111 0.0.0.0 UG 0 0 0
ppp0
[root@localhost root]# cat /proc/sys/net/ipv4/ip_forward
1

it seems even ip forwarding doesn't work
my script for iptables is:

ifup eth1
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain


# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface ppp0 -j
MASQUERADE
iptables --append FORWARD --in-interface eth1 -j ACCEPT

my client does it's gateway setup and i can ping 192.168.1.1 (the
gateway)

Mihai Osian wrote:
> That might be a DNS misconfiguration. If you have two or more DNS
> servers defined and the first one is wrong, it will wait until it

times
> out, then it will try the second server. Check how fast it is if you
> type in the browser the IP address of the sites that don't work. To

get
> the IP address use "dig www.site.com" (on linux).
>
> Mihai
>
> Elhanan wrote:
>
> >i've made progress,
> >i placed
> >iptables --table nat --append POSTROUTING --out-interface ppp0 -j
> >MASQUERADE
> >iptables --append FORWARD --in-interface eth1 -j ACCEPT
> >
> >(the change is that instead eth0 in postrouting i've typed ppp0) i

also
> >removed gatewaydev=ppp0 from network file.
> >
> >i can now ping the gateway 212.199.26.106 and can also recieve web
> >pages.
> >BUT the i cannot recieve all web pages, and while some come up they
> >come up veeeery slooooowly, and others do not come up at all.
> >
> >
> >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Configure Windows Machine to Allow File Sharing with DNS Alias Michael Windows Networking 1 06-11-2009 03:38 AM
Trouble configure a connection Matthew Aitchison Wireless Networks 2 05-27-2007 04:39 PM
Configure Wireless Network for File sharing and printing shaoen01 Wireless Networks 16 05-24-2007 03:08 PM
Configure Wireless Sharing shaoen01 Wireless Networks 8 08-20-2006 04:49 AM
how to configure NAT dynamic ip connection sureshprasanna Linux Networking 1 12-15-2003 04:23 PM



1 2 3 4 5 6 7 8 9 10 11