* netfilter .. (openswan) nat problem ..
@ 2006-06-06 21:00 ji'e'toh
2006-06-07 11:36 ` Sietse van Zanen
0 siblings, 1 reply; 4+ messages in thread
From: ji'e'toh @ 2006-06-06 21:00 UTC (permalink / raw)
To: netfilter
i have to solv the following problem (debian 3.1, kernel 2.6.14 from kernel
org, no patches, openswan 2.x.x maybe important):
netA - gwA - gwB - netB - internet, where
netA: 192.168.0.0/24
gwA: 192.168.0.1 + pppoe-ip-addr
gwB: 100.100.100.100 (static official ip)
netB: 100.100.100.100/32 (no real subnet)
gwA and gwB are both real gateways
tunnel works in the following way:
netA/gwA to netB/gwB and netB/gwB to netA/gwA, all I think .
now I want to forward a spezial port on gwB, perhaps 50000 to an address in
netA (192.168.0.100:50000), ok np from gwB, but ! I could not connect from
the internet over gwB to this spezial host
my nat rules, nothing else ..
iptables -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 --dport 50000
--to-destination 192.168.0.100:50000 -i eth0
iptables -t nat -A POSTROUTING -j SNAT -p tcp -d 192.168.0.100 --dport 50000
--to 100.100.100.100 -o eth0
tcpdump tell me that all nat works, but no traffic on gwA interfaces
received. gwB send it, but I have a [DF] in that lines, maybe important, I
doesn't know
any suggestions? someone could help?
regards, ji
^ permalink raw reply [flat|nested] 4+ messages in thread
* netfilter .. (openswan) nat problem ..
@ 2006-06-06 21:04 Lars Nixdorf
2006-06-06 23:06 ` Jeho Park
0 siblings, 1 reply; 4+ messages in thread
From: Lars Nixdorf @ 2006-06-06 21:04 UTC (permalink / raw)
To: netfilter
i have to solv the following problem (debian 3.1, kernel 2.6.14 from kernel
org, no patches, openswan 2.x.x maybe important):
netA - gwA - gwB - netB - internet, where
netA: 192.168.0.0/24
gwA: 192.168.0.1 + pppoe-ip-addr
gwB: 100.100.100.100 (static official ip)
netB: 100.100.100.100/32 (no real subnet)
gwA and gwB are both real gateways
tunnel works in the following way:
netA/gwA to netB/gwB and netB/gwB to netA/gwA, all I think .
now I want to forward a spezial port on gwB, perhaps 50000 to an address in
netA (192.168.0.100:50000), ok np from gwB, but ! I could not connect from
the internet over gwB to this spezial host
my nat rules, nothing else ..
iptables -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 --dport 50000
--to-destination 192.168.0.100:50000 -i eth0 iptables -t nat -A POSTROUTING
-j SNAT -p tcp -d 192.168.0.100 --dport 50000 --to 100.100.100.100 -o eth0
tcpdump tell me that all nat works, but no traffic on gwA interfaces
received. gwB send it, but I have a [DF] in that lines, maybe important, I
doesn't know
any suggestions? someone could help?
regards, ji
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: netfilter .. (openswan) nat problem ..
2006-06-06 21:04 netfilter .. (openswan) nat problem Lars Nixdorf
@ 2006-06-06 23:06 ` Jeho Park
0 siblings, 0 replies; 4+ messages in thread
From: Jeho Park @ 2006-06-06 23:06 UTC (permalink / raw)
To: Lars Nixdorf; +Cc: netfilter
as i know, this problem was patched from 2.6.16
so you will need to upgrade kernel or apply that patch
Lars Nixdorf wrote:
>i have to solv the following problem (debian 3.1, kernel 2.6.14 from kernel
>org, no patches, openswan 2.x.x maybe important):
>
>netA - gwA - gwB - netB - internet, where
>
>netA: 192.168.0.0/24
>gwA: 192.168.0.1 + pppoe-ip-addr
>gwB: 100.100.100.100 (static official ip)
>netB: 100.100.100.100/32 (no real subnet)
>
>gwA and gwB are both real gateways
>
>tunnel works in the following way:
>
>netA/gwA to netB/gwB and netB/gwB to netA/gwA, all I think .
>
>now I want to forward a spezial port on gwB, perhaps 50000 to an address in
>netA (192.168.0.100:50000), ok np from gwB, but ! I could not connect from
>the internet over gwB to this spezial host
>
>my nat rules, nothing else ..
>
>iptables -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 --dport 50000
>--to-destination 192.168.0.100:50000 -i eth0 iptables -t nat -A POSTROUTING
>-j SNAT -p tcp -d 192.168.0.100 --dport 50000 --to 100.100.100.100 -o eth0
>
>tcpdump tell me that all nat works, but no traffic on gwA interfaces
>received. gwB send it, but I have a [DF] in that lines, maybe important, I
>doesn't know
>
>any suggestions? someone could help?
>
>
>
>regards, ji
>
>
>
>
>
>
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: netfilter .. (openswan) nat problem ..
2006-06-06 21:00 ji'e'toh
@ 2006-06-07 11:36 ` Sietse van Zanen
0 siblings, 0 replies; 4+ messages in thread
From: Sietse van Zanen @ 2006-06-07 11:36 UTC (permalink / raw)
To: ji'e'toh, netfilter
In addition to NAT, do you also ACCEPT the traffic in the FORWARD chain of the FILTER table?
Your second NAT rule: iptables -t nat -A POSTROUTING -j SNAT -p tcp -d 192.168.0.100 --dport 50000
--to 100.100.100.100 -o eth0
--dport should be --sport otherwise return traffic will not work.
-Sietse
________________________________
From: netfilter-bounces@lists.netfilter.org on behalf of ji'e'toh
Sent: Tue 06-Jun-06 23:00
To: netfilter@lists.netfilter.org
Subject: netfilter .. (openswan) nat problem ..
i have to solv the following problem (debian 3.1, kernel 2.6.14 from kernel
org, no patches, openswan 2.x.x maybe important):
netA - gwA - gwB - netB - internet, where
netA: 192.168.0.0/24
gwA: 192.168.0.1 + pppoe-ip-addr
gwB: 100.100.100.100 (static official ip)
netB: 100.100.100.100/32 (no real subnet)
gwA and gwB are both real gateways
tunnel works in the following way:
netA/gwA to netB/gwB and netB/gwB to netA/gwA, all I think .
now I want to forward a spezial port on gwB, perhaps 50000 to an address in
netA (192.168.0.100:50000), ok np from gwB, but ! I could not connect from
the internet over gwB to this spezial host
my nat rules, nothing else ..
iptables -t nat -A PREROUTING -j DNAT -p tcp -s 0/0 --dport 50000
--to-destination 192.168.0.100:50000 -i eth0
iptables -t nat -A POSTROUTING -j SNAT -p tcp -d 192.168.0.100 --dport 50000
--to 100.100.100.100 -o eth0
tcpdump tell me that all nat works, but no traffic on gwA interfaces
received. gwB send it, but I have a [DF] in that lines, maybe important, I
doesn't know
any suggestions? someone could help?
regards, ji
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2006-06-07 11:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-06 21:04 netfilter .. (openswan) nat problem Lars Nixdorf
2006-06-06 23:06 ` Jeho Park
-- strict thread matches above, loose matches on Subject: below --
2006-06-06 21:00 ji'e'toh
2006-06-07 11:36 ` Sietse van Zanen
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.