PDA

View Full Version : firewall questions


zenny
25th June 2008, 13:08
I have created a subnet (192.168.1.0/24) with two nic ( to use as a local router machine) behind a gateway (xxx.yyy.39.190). Please have a look at the attached file. Now I am encountering following issues:

1) The subnet machines with (192.168.1.0/24) machines can access the Internet and other services I open for the gateway xxx.yyy.39.192), but not other services within the local net services like samba and others.

2) Even the localnet could not access the services being run in subnet machines.

The above two conditions are mandatory for me. Any help, how to achieve them? Thanks!

falko
26th June 2008, 16:56
Is this maybe a firewall problem? Are there any errors in your logs?

zenny
26th June 2008, 20:04
Falko:

Couldn't see any errors. Is there any specific error logs to this situation?

For your info, iptables-save generated the following /etc/sysconfig/iptables:


*mangle
:PREROUTING ACCEPT [1450:175937]
:INPUT ACCEPT [1409:169343]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [736:87307]
:POSTROUTING ACCEPT [736:87307]
COMMIT

*filter
:INPUT ACCEPT [1409:169343]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [736:87307]
-A FORWARD -i eth1 -j ACCEPT
COMMIT

*nat
:PREROUTING ACCEPT [43:7374]
:POSTROUTING ACCEPT [1:69]
:OUTPUT ACCEPT [8:621]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT