Koozali.org: home of the SME Server
Legacy Forums => General Discussion (Legacy) => Topic started by: Anders Wong on June 05, 2002, 03:27:54 PM
-
Hi there,
I am using e-smith 4.1.2 at home, I have another two computers linked with E-smith. Now, one of it has web server (with Apache installed and its ip is 192.168.1.65). however, I would like outside to access my web server (192.168....). I know I have to do port forwarding, but I tried it and it doesn't work at all... pls tell me how to do it.
If you someone can give me a working example and tell me where should I put those setting.. that's would be great.
Thank You in advance.
Here is some information of my IP:
eth0==>ADSL (with dynamic IP)
eth1==>connected to hub
192.168.1.1 (e-smith gateway)
192.168.1.65 (with Apache installed)
192.168.1.66 ..the other pc...
Best Regards,
Anders
-
You can use the port forwarding util here
http://myezserver.com/downloads/mitel/contrib/portforwarding-0.0.1/
or just build a custom template fragment with something like:
/usr/sbin/ipmasqadm portfw -a -P tcp -L $OUTERNET 80 -R 192.168.1.65 80
the fragment should probably go in:
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq
This would forward all incoming trafic on port 80 to the internal box port 80.
Trigger a remoteaccess-update and you should be done.
-
Hi There,
I didn't make the custom template fragment, I just typed the below command from the console.. and the 192.168.1.65 (apache) is working...
/usr/sbin/ipmasqadm portfw -a -P tcp -L my_dynamic_ip 80 -R 192.168.1.65 80
however, I want to ask that,... how can I make the port forwarding will automatically load during boot time? Because of the (ISP) dynamic ip, how the script can put a correct IP in $my_dynamic_ip instead of checking the ip with ifconfig?
what custem template should I make if I use /expand-template..etc
If you can point me a procedure or details, that would be prefect..
Thanx
Best Regards
anders