NAT Help...Again...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ok ok, i've looked around sites and stuff, and here is my problem:
I have 2 computers, one called darna and one called bagle (don't ask). 
Here is my setup:


INTERNET --> eth1 = 10.30.7.147 |darna| eth0 = 192.168.0.1 <--> eth0 = 192.168.0.2 |bagle|

Here is my routing tables (netstat -r) for each: 

root@darna:/home/cody# netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.30.7.144     *               255.255.255.240 U        40 0          0 eth1
172.16.18.0     *               255.255.255.0   U        40 0          0 vmnet8
192.168.0.0     *               255.255.255.0   U        40 0          0 eth0
192.168.189.0   *               255.255.255.0   U        40 0          0 vmnet1
loopback        *               255.0.0.0       U        40 0          0 lo
default         10.30.7.145     0.0.0.0         UG       40 0          0 eth1
root@darna:/home/cody#

and bagle's:
root@bagle:~# netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
localnet        *               255.255.255.0   U        40 0          0 eth0
localnet        *               255.255.255.0   U        40 0          0 eth0
loopback        *               255.0.0.0       U        40 0          0 lo
root@bagle:~#

The problem: I can't access anything beyond darna. On darna, this is my nat table:
root@darna:/home/cody# iptables -L -t nat
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination         
MASQUERADE  tcp  --  192.168.0.2  anywhere           tcp dpt:http 

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
root@darna:/home/cody# 

I can't access ANYTHING, like i said, beyond darna.

What gives?


-- 
+------------------+-----------------------------+
| Cody Harris      | --------------------------- |
| ---------------- | --------------------------- |
+------------------+-------+---------------------+---+
| *Sigh*. No key.                                    |
+----------------------------------------------------+


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux