Koozali.org: home of the SME Server

Auto port opening after restart?

Tommy

Auto port opening after restart?
« 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

Bill Talcott

Re: Auto port opening after restart?
« Reply #1 on: April 17, 2003, 05:56:59 PM »
What about just installing the port forwarding contrib?

Charlie Brady

Port forwarding (was Re: Auto port opening after restart?)
« Reply #2 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

Nathan Fowler

Re: Port forwarding (was Re: Auto port opening after restart
« Reply #3 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.

Tommy

Re: Auto port opening after restart?
« Reply #4 on: April 22, 2003, 09:49:06 PM »
Thanks to all of you!
I got it to work with the portforward distro.