From: Cody Harris <hchs@ns.sympatico.ca>
To: netfilter@lists.netfilter.org
Subject: NAT Help...Again...
Date: Tue, 27 Jan 2004 15:07:14 -0400 [thread overview]
Message-ID: <20040127150714.7de338f7.hchs@ns.sympatico.ca> (raw)
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. |
+----------------------------------------------------+
reply other threads:[~2004-01-27 19:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040127150714.7de338f7.hchs@ns.sympatico.ca \
--to=hchs@ns.sympatico.ca \
--cc=netfilter@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.