Koozali.org: home of the SME Server

Letting PC anywhere into my lan..

Ray

Letting PC anywhere into my lan..
« on: June 20, 2001, 10:19:57 AM »
Hi all,

I have a Cable modem plugged into my E-smith server's public interface: Dynamic IP.. 24.120.192.22

I have a second nic in it for the lan.: 10.0.0.1


I have a pc running pcanywhere 9 on ,my lan : 10.0.0.46

i can access the internet from inside the lan.
I can access my website and ftp server from anywhere on the internet.

How can I connect to my pcanywhere machine from anywhere on the internet?  (i.e. I want to remote control into my office pc and from a client who has dsl and pcanywhere on his system)

I tried these commands:

/sbin/e-smith/db configuration setprop masq TCPForwards 5631,10.0.0.46
/sbin/e-smith/db configuration setprop masq UDPForwards 5632,10.0.0.46
/sbin/e-smith/signal-event remoteaccess-update

I have PCanywhere host loaded on my office pc, but when i launch pcanywhere on a remote site, using 24.120.192.22 as the address, i get a connection timeout...

any suggestions?

am i attacking this problem correctly?

also, if ican get this to work, i want to try to get a udp port open so that i can redirect ip-tunneling to my netware server.......


such big dreams in such a small space, with so much information.........

-Ray

tobi

Re: Letting PC anywhere into my lan..
« Reply #1 on: June 20, 2001, 03:15:27 PM »
Hi,
don“t have e-smith running as gateway (only intranetserver), but Portforwarding is the same...
I have a little script like the following:
/usr/sbin/ipmasqadm portfw -a -P tcp -L $ip 5631 -R 192.168.0.206 5631
/usr/sbin/ipmasqadm portfw -a -P udp -L $ip 5631 -R 192.168.0.206 5631
/usr/sbin/ipmasqadm portfw -a -P tcp -L $ip 5632 -R 192.168.0.206 5632
/usr/sbin/ipmasqadm portfw -a -P udp -L $ip 5632 -R 192.168.0.206 5632

where $ip is my external ip from the isp. It forwards the connection to pcanywhere from the gateway the my office pc (192.168.0.206)
should work on e-smith too.

greetings
tobi

Ray

Re: Letting PC anywhere into my lan..
« Reply #2 on: June 21, 2001, 08:40:54 AM »
I followed the command lines that you used, but that didn't do it.

How do i turn the gateway off?  Why do i have to ? What will it effect, will i still be able to access the net from inside my lan?

TIA


-Ray

daniel klumpp

Re: Letting PC anywhere into my lan..
« Reply #3 on: June 23, 2001, 03:35:07 PM »
Why don't you try vpn ??
If your client connect e-smith server with vpn, you can connect your machin with pcanywhere.
And you don't have to put rules to your firewall

See you soon