On Fri, 09 Apr 2010 12:20:36 +0200, Tamer Higazi wrote:
> My config:
>
> # This network configuration was written by net-setup
Sorry, I have not seen that kind of configuration file.
What Linux Distribution are you running?
> config_eth0=("192.168.1.2 broadcast 192.168.1.255 netmask 255.255.255.0")
> config_eth3=("192.168.2.1 broadcast 192.168.2.255 netmask 255.255.255.0")
>
> dns_domain_lo="heimnetzwerk"
I need to install your distribution. What is it?
> and if i configure a client behind eth3 let us say with:
>
> 192.168.2.2, gw: 192.168.2.1 and nameserver: 192.168.2.1
You might want to consider using a known working dns server while
testing. Do a
cat /etc/resolv.conf
on the 192.168.1.2 machine and use same dns values on 192.168.2.2 machine.
> i stil even can't jump with the client in the internet. Ip forwarding is
> activated and masquerading too
Double check that, on the 192.168.1.2 machine, do a
cat /proc/sys/net/ipv4/ip_forward
if 1, then you are correct.
We need to see routing from both machines. The command is
route -n
> Here te firehol (firewall) script:
snip
When working a network problem, I find it helpful to have a spare
terminal open, watching the log file. I run shorewall as my firewall
and it's output can be seen in /var/log/messages. So the command is
tail -f /var/log/messages
Then I run my tests in another terminal.
> however, I can't jump with the client in the internet. I can ping to the
> other machine, but not in the internet. The hell I know why
To keep trouble shooting simple, I would ping the WAN/internet gateway
ip address from 192.168.1.2. If works, then ping the same ip address
from 192.168.2.2 (LAN machine).