Koozali.org: home of the SME Server

port forwarding. error?

Simon

port forwarding. error?
« on: July 25, 2001, 08:40:54 PM »
We have a 4.1.2 server and gateway providing internet access to our LAN.
I have followed the port forwarding HOWTO and am using the script that's provided there.
I want to port forward requests from the internet for the web site to a machine 192.168.0.7 on the LAN.

I've altered the TCP lines in the script and commented out the UDP ones.

I have:

TPORT1=80
TADDR1=192.168.49.7

It doesn't work.
Last 30 or so lines in /var/log/messages shows

Jul 25 16:25:56 intergateway e-smith[24970]: Running event handler: /etc/e-smith/events/remoteaccess-update/S90pptpd-restart
Jul 25 16:25:56 intergateway e-smith-bg: Shutting down IP masquerade and firewall rules:^I^IDone!
Jul 25 16:25:56 intergateway e-smith-bg:
Jul 25 16:25:57 intergateway e-smith[24970]: Running event handler: /etc/e-smith/events/remoteaccess-update/S95reload-xinetd
Jul 25 16:25:57 intergateway xinetd[724]: Starting soft reconfiguration
Jul 25 16:25:57 intergateway xinetd[724]: readjusting service auth
Jul 25 16:25:57 intergateway xinetd[724]: readjusting service ftp
Jul 25 16:25:57 intergateway xinetd[724]: readjusting service imap
Jul 25 16:25:57 intergateway xinetd[724]: readjusting service pop-3
Jul 25 16:25:57 intergateway xinetd[724]: readjusting service smtp
Jul 25 16:25:57 intergateway xinetd[724]: Reconfigured: new=0 old=5 dropped=0 (services)
Jul 25 16:25:57 intergateway e-smith[24970]: Running event handler: /etc/e-smith/events/remoteaccess-update/S95reset-unsavedflag
Jul 25 16:25:58 intergateway e-smith-bg: Killed xinetd(724)
Jul 25 16:25:58 intergateway /etc/e-smith/events/remoteaccess-update/S95reset-unsavedflag[25053]: /home/e-smith/configuration: OLD UnsavedChanges=yes
Jul 25 16:25:58 intergateway /etc/e-smith/events/remoteaccess-update/S95reset-unsavedflag[25053]: /home/e-smith/configuration: NEW UnsavedChanges=no
Jul 25 16:25:59 intergateway e-smith-bg: Enabling IP masquerading: ipchains: option requires an argument -- s
Jul 25 16:25:59 intergateway e-smith-bg: Try ipchains -h' or 'ipchains --help' for more information.
Jul 25 16:25:59 intergateway e-smith-bg: done

Would be very grateful for any guidance anyone may be able to offer.  Also, I wonder, if I port forward port 5900 does this mean I will be able to use a vncviewer at home to control a Win98 machine running winvncserver at work?

Thanks a lot.

Fred horcholle

Re: port forwarding. error?
« Reply #1 on: July 28, 2001, 07:37:02 PM »
First you have to look on your internal Web server in the network property if the gateway is your E-smith machine.
To forward a port number i do not use the how to but the ipmasqadm command as discribe there http://forums.contribs.org/index.php?topic=10855.msg40966#msg40966

good luck

fred

Fred horcholle

Re: port forwarding. error?
« Reply #2 on: July 28, 2001, 07:49:26 PM »
A bout VNC, if you want to use VNC to control an internal PC througt Internet.

You have forward port 5800 and 5900, (the VNC internal PC mut have the E-smith IP adress as Gateway in the network Property) I use this
ipmasqadm portfw -a -P tcp -L [MY_INTERNET_IP_ADD] 5800 -R 192.168.1.67 5800
ipmasqadm portfw -a -P tcp -L [MY_INTERNET_IP_ADD] 5900 -R 192.168.1.67 5900
192.168.1.67 is the PC in your unternal network running VNC Server with a password.
then from an internet connected PC, i launch an internet browser with the following URL :
http://[MY_INTERNET_IP_ADD]:5800
Write your password, et voilĂ 

Fred