Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: bas on September 02, 2005, 01:52:55 PM

Title: Understanding Portforwarding
Post by: bas on September 02, 2005, 01:52:55 PM
I’m Having some trouble understanding how portforwarding works (NAT).
I want to access ‘my_server1’ on port ‘x’ from the internet and let it forward to ‘My_server2’ port ‘Y’ in my local lan.

The only way I got this to work is bij adding the IP-address of the external client-pc in  “/etc/e-smith/templates/etc/smb.conf/11hostsAllow”

I think (hope) there is an easier way to get this to work, otherwise if  an external-client has DHCP I need to add a lot of address (impossible).

I’ve created a test setup:
 ‘My_servers’ are both sme 6.01 freshly installed.
‘my_server1’ has 2 NIC’s and is in Gateway mode.
‘my_server2’ has one Nic and is a private server.
‘my_external_pc’ Connected to 2nd Nic of ‘my_server1’

Do  I  have to add the ip-address of the connecting client-pc to ‘Myserver_2’?
If so, should it be done in ...11hostsAllow?


Bas
Title: Re: Understanding remote access and Portforwarding
Post by: CharlieBrady on September 02, 2005, 10:23:22 PM
Quote from: "bas"
I’m Having some trouble understanding how portforwarding works (NAT).
I want to access ‘my_server1’ on port ‘x’ from the internet and let it forward to ‘My_server2’ port ‘Y’ in my local lan.


Fine, that's what port forwarding does.

Quote

The only way I got this to work is bij adding the IP-address of the external client-pc in  “/etc/e-smith/templates/etc/smb.conf/11hostsAllow”


This is on My_server2? That means that port forwarding is working fine, and My_server2 is doing what it should do, which is to reject non-local accesses to its SMB file sharind service.

Quote

Do  I  have to add the ip-address of the connecting client-pc to ‘Myserver_2’?
If so, should it be done in ...11hostsAllow?


Use the local networks panel on My_server2.
Title: Understanding Portforwarding
Post by: bas on September 02, 2005, 11:19:38 PM
And the router in local networks should point to My_server1?