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 

Port forwarding don't work with 2 external IP

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
Konstantinus



Joined: 01 Dec 2015
Posts: 1

PostPosted: Tue Dec 01, 2015 6:25 pm    Post subject: Port forwarding don't work with 2 external IP Reply with quote

Hello!
Please help me.

I have 2 external IP in eth1 interface, end local network with 2 server in eth0 interface.

My sofr router have 2 external IP and 1 local - 192.168.0.1.

I create rule:
85.159.6.48 forward 80 port to 192.168.0.7
85.159.6.61 forward 80 port to 192.168.0.3
First rule is work, but when i go to 85.159.6.61 I get a second address browser get me 192.168.0.1

Thanks!
Back to top
View user's profile Send private message
TheNanny



Joined: 06 Mar 2013
Posts: 17

PostPosted: Wed May 04, 2016 1:15 pm    Post subject: Reply with quote

Hi.

What I see looks right and should work. I can't test your configuration, but I also don't think there is a bug.
I understand that your eth1 interface has two local IP addresses, one is 85.159.6.48 and the second is 85.159.6.61.
If it shows you the ZS webinterface on 85.159.6.61 you should remove ETH1 or the subnet 85.159.6.0/xx from the "SETUP" ->"WEB" otherwise ZS web server for the webinterface answers the request on port 80.
Back to top
View user's profile Send private message
DrmCa



Joined: 12 Apr 2011
Posts: 205

PostPosted: Tue May 10, 2016 4:33 pm    Post subject: Reply with quote

Here are my FTP/web server rules for example, I too have 2 external IPs and this always worked:

ppp0 / ANY TCP 21 10.10.10.2:21
ppp1 / ANY TCP 21 10.10.10.2:21
ppp0 / ANY TCP 80 10.10.10.2:80
ppp1 / ANY TCP 80 10.10.10.2:80
ppp0 / ANY TCP 443 10.10.10.2:443
ppp1 / ANY TCP 443 10.10.10.2:443

As you can see I did not bother with the source IPs, just used the PPP interfaces as source.
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 -> ZeroShell 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