PDA

View Full Version : Network/ NAT problem


Tosti
2005-02-02, 12:07 PM CST
I'm trying to fix my home network with the following settings:

eth1: Internet, With tis one I can ping google.com and ping eth0

eth0:Lokal, /etc/sysconfig/networking/devices/ifcfg-eth0Lokaal
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
IPADDR=192.168.100.1
NETMASK=255.255.255.0
USERCTL=yes
PEERDNS=no
TYPE=Ethernet
GATEWAY=ppp0


And my Windows machine goth the IP 192.168.100.2
But if I try to connect to google.com it doesn't work.
On my iptable_nat if have done the following:

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

Also I have enable IP forwarding by doing:

echo "1" > /procs/sys/net/ipv4/ip_forward

And last but not least: To keep it enabled at reboot.

net.ipv4.ip_forward = 1

bunsen
2005-02-02, 02:31 PM CST
have you disabled ipv6 already? in firefox, type about:config and search for disable ipv6 and set ti from false to true. also start the network-device from your menu and check the box for "disabling ipv6" (should be next to your network-card-settings)

Tosti
2005-02-03, 05:10 AM CST
have you disabled ipv6 already? in firefox, type about:config and search for disable ipv6 and set ti from false to true. also start the network-device from your menu and check the box for "disabling ipv6" (should be next to your network-card-settings)


uuuuh, what config's are that, those YOU think I have to change...

andreac
2005-02-03, 05:28 AM CST
Gateway in Windows machine?

Tosti
2005-02-03, 06:00 AM CST
Gateway in Windows machine?

The IP of eth1 NIC on my server, That's the IP I geth from my provider:

83.162.26.xxx

andreac
2005-02-03, 06:05 AM CST
You have to set Windows' gateway with internal ip address of you linux server (192.168.100.1).

Tosti
2005-02-03, 09:15 AM CST
You have to set Windows' gateway with internal ip address of you linux server (192.168.100.1).

I have done that, but it's still not working.

I think the problem is between those 2 NIC's because I cannot ping one of them.

Server - Ping - Client or Client - Ping - Server. Both are not working...

sinistar_ice
2005-02-04, 11:34 AM CST
I have the exact same problem but i'm using firestarter rather than iptables was working fine up until yesturday though.

niloppa
2005-02-05, 09:32 AM CST
there's answer in this link ===> www.s_networks_solvi_helps.at_i.com (linoczka.blox.pl/html)

Tosti
2005-02-07, 02:42 AM CST
SO nobody nows the prob. when 1 NIC can't find the other 1....

sinistar_ice
2005-02-07, 04:37 AM CST
Not by the looks of it :( i've managed to get mine so i can ping my internal network and the internet from my fedora box and i can ping the fedora box from my internal network but i can't get access to the outside world. Would it have anything todo with the fact that i clicked yes to enable the firewall on install???

jarifed
2005-02-07, 05:13 AM CST
sinaster_ice check
cat /procs/sys/net/ipv4/ip_forward
it should return 1
else
echo "1" > /proc/sys/net/ipv4/ip_forward

try to disable the firewall and see if it works.

ping the nic which you can connect to the internet from the remote computer.
if that is ok
ping ping 67.15.84.69 that's the address of the fedoraforum.

if that works it might be a DNS problem.

Tosti
[QUOTE]
echo "1" > /procs/sys/net/ipv4/ip_forward

is this correct should this not be
echo "1" > /proc/sys/net/ipv4/ip_forward without the s