Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: Tommy on April 17, 2003, 11:52:48 AM

Title: Auto port opening after restart?
Post by: Tommy on April 17, 2003, 11:52:48 AM
Hi!

I want to do this task automatic, when My server reboots
:
ipmasqadm portfw -a -P tcp -L 80.196.156.67  4661 -R 192.168.236.66 4661
ipmasqadm portfw -a -P tcp -L 80.196.156.67  4662 -R 192.168.236.66 4662
ipmasqadm portfw -a -P tcp -L 80.196.156.67  4663 -R 192.168.236.66 4663
ipmasqadm portfw -a -P udp -L 80.196.156.67  4665 -R 192.168.236.66 4665

Is there a script I can put these lines in and how?


Thanks,

Tommy
Title: Re: Auto port opening after restart?
Post by: Bill Talcott on April 17, 2003, 05:56:59 PM
What about just installing the port forwarding contrib?
Title: Port forwarding (was Re: Auto port opening after restart?)
Post by: Charlie Brady on April 17, 2003, 08:14:41 PM
Tommy wrote:

> I want to do this task automatic, when My server reboots
> :
> ipmasqadm portfw -a -P tcp -L 80.196.156.67  4661 -R
> 192.168.236.66 4661
...

That's port forwarding, not port opening. Port opening, by itself, achieves nothing. There are contrib, with web panel, which does what you want. 5.5 and 5.6 need different versions.

Charlie
Title: Re: Port forwarding (was Re: Auto port opening after restart
Post by: Nathan Fowler on April 22, 2003, 08:34:47 PM
If you want those commands to be executed after reboot append them to the end of /etc/rc.d/rc.local.

As Charlie said, those are port-fowarding commands, not firewall "port-opening" commands.
Title: Re: Auto port opening after restart?
Post by: Tommy on April 22, 2003, 09:49:06 PM
Thanks to all of you!
I got it to work with the portforward distro.