Re: Port forwarding problem

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

 



Thanks Pascal for your answer.

I had that rule but I deleted, I just add again

iptables -A FORWARD -p tcp -i eth0 -d 10.1.1.7 --dport 80 -j ACCEPT

but it doesn't work.



On 10/16/2010 08:13 AM, Pascal Hambourg wrote:
Hello,

Carlos Mtz-Troncoso a écrit :

My server has 2 network cards, eth0 is for Internet with an IP address
fixed, and eth1, 10.1.1.1/16 is for local network (10.1.0.0/16). In this
server I have OpenVPN working well and the is used as gateway.

My script worked well and the last change was to add a port forwarding:
the traffic from IP public port 2020 is sent to a internal web sever
10.1.1.7:80. The internal server has as gateway 10.1.1.1 (my Linux
IPTables box).

My problem is that the port forwarding is not working, here is my script.
[...]
Where is my error?

IMO the rule in FORWARD accepting the port-forwarded packets is missing.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[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