www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

routing trought 2 routeurs

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Firewall, Traffic Shaping and Net Balancer
View previous topic :: View next topic  
Author Message
staifan13



Joined: 09 Apr 2010
Posts: 25
Location: France

PostPosted: Wed Sep 13, 2017 4:41 pm    Post subject: routing trought 2 routeurs Reply with quote

Hello,
I have a problem routing a port trought Zeroshell .

mI have 2 routeurs . My first routeur (the gateway) is configured with a 192.168.1.0/24 adress on his lan .
my zeroshell is conected to my gateway on ETH00 with 192.168.1.7 static IP adress .
ETH01 is configures with 192.168.10.0/24 .
I have enabled the NAT o ETH00 and ETH01 .
I have a web server on ETH01 with IP 192.168.10.11 wich work on port 81 .

On my first routeur (the gateway) I configured the port forwarding from the WAN port 80 to 192.168.1.7 port 83 .

On zeroshell I configured the port forwarding from ETH00 port 83 to 192.168.10.11 on port 81 .

So this my routing table :

Chain PREROUTING (policy ACCEPT 1006 packets, 178K bytes)
pkts bytes target prot opt in out source destination
37037 4196K CapPort all -- * * 0.0.0.0/0 0.0.0.0/0
1890 91064 Proxy tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
0 0 DNAT tcp -- ETH00 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:83 to:192.168.10.11:81
0 0 DNAT udp -- ETH00 * 0.0.0.0/0 0.0.0.0/0 udp dpt:83 to:192.168.10.11:81

Chain POSTROUTING (policy ACCEPT 98 packets, 6687 bytes)
pkts bytes target prot opt in out source destination
146K 10M SNATVS all -- * * 0.0.0.0/0 0.0.0.0/0
21288 1642K MASQUERADE all -- * ETH00 0.0.0.0/0 0.0.0.0/0
95 12448 MASQUERADE all -- * ETH01 0.0.0.0/0 0.0.0.0/0

Chain SNATVS (1 references)
pkts bytes target prot opt in out source destination


but it doesn't work and I don't understand why .

If any can help me ...

Thank you .

Stéphan (France)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> Firewall, Traffic Shaping and Net Balancer All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group