Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Micke B on August 18, 2002, 09:45:08 PM

Title: portforwarding
Post by: Micke B on August 18, 2002, 09:45:08 PM
I'm using portforwarding-0.0.1. If I get a new IP the forwarding breaks. How do I restart portforward?

Thanks in advance
Micke B
Title: Re: portforwarding
Post by: guestHH on August 18, 2002, 11:06:17 PM
Hi,

Use portforwarding-0.0.4

Regards,
guestHH
Title: Re: portforwarding
Post by: Micke B on August 18, 2002, 11:55:16 PM
I am using dmc-mitel-portforwarding-0.0.1-4.noarch.rpm
Title: Re: portforwarding
Post by: guestHH on August 19, 2002, 04:22:38 AM
Hi,

Ok the issue lies within the fact that your external IP changes. After a IP change you have to apply the portforwardig rules again. Thus delete them and apply the again.

Maybe it's time to us a dynamic IP service...

Regards,
guestHH
Title: Re: portforwarding
Post by: Micke B on August 19, 2002, 09:16:21 AM
Hi, thanks for your answers

Yes I know I can apply the rules again by deleting and adding them but I don't want that. I just want to apply the rules again.

I thougt I was using a dynamic IP service. Why would the IP change if I wasn't?

Micke B
Title: Re: portforwarding
Post by: guestHH on August 19, 2002, 12:16:03 PM
Hi,

Then maybe the automatic update isn't working. Try searching these forums for with the keyword the service you use. I know there where some issues in the past.

Regards,
guestHH
Title: Re: portforwarding
Post by: Bill Talcott on August 19, 2002, 05:57:22 PM
I think he meant "dynamic DNS", not "dynamic IP". By running a client on the SME, it will update your server's IP with the service, and you'll always have a set domain name (mysme.dyndns.org or something) that points to your server.
Title: Re: portforwarding
Post by: guestHH on August 20, 2002, 01:46:37 AM
Yeah sorry, you're right Bill. I was talking about 'dynamic DNS'
Title: Re: portforwarding
Post by: Micke B on August 20, 2002, 10:19:23 AM
There must be a way to restart the portforwarding. What is happening when I delete/add a port forwarding entry?

--Micke B
Title: Re: portforwarding
Post by: Jay Rentmeester on August 21, 2002, 08:20:39 AM
I am having the same problem. When my Cable provider forces me a new DHCP address, port forwarding on port 80 stops working. Port 21 work s ok though.

here is my configuration:

SME Server v5.5
Update blade 1
dmc-mitel-portforwarding-0.0.1-4.noarch.rpm
Time Warner Cable
dyndns.org custom dns services
dyndns client on windows server behind SME Server (web server)

Any ideas is much appreaciated.

Thanks,

Jay
Title: Re: portforwarding
Post by: Micke B on August 24, 2002, 01:29:43 AM
I guess none in this forum is skilled enough. I'll better ask someone who knows linux. This seems to be a playground for amateurs like myself
Title: Re: portforwarding (again)
Post by: Guck Puppy on September 06, 2002, 10:01:56 PM
So yes... portforwarding and it's stoppage after an IP update (like when you have a reconnect on a dynamic IP adsl account).

I too am using dmc-mitel-portforwarding-0.0.1-4 on a 5.1.2 server...

The server is slow, old and having to recreate these port forwards every time the IP address changes (it's pacbell, it happens too much) is pain pain pain.

Is there perhaps a console command I could include that would run when the dyndns "update" occurs?

G
Title: Re: portforwarding (Solution)
Post by: Hanno Stockhausen on September 19, 2002, 01:09:04 PM
Hi

Well, we had the same prob, ipforwarding stopped after an ip-change occured.

Basically the solution to this is rather simple. When you change a forwarding rule the event remoteacces-update will be signaled, which builds a new masq file under /etc/rc.d. Unfortunately the external ip in the forwarding rule is hard coded in that file. So when an ip-change occurs, the masq file will be read again, but still has the old ip in it. What you need to do is, to trigger the recreation of the masq file with your new ip address.

We accomplished that by creating a symlink in /etc/e-smith/events/ip-change to /etc/e-smith/actions/conf-masq. Make sure that this will be executed before the restart-masq script. (Or you can just copy the link from remoteaccess-update and adjust the linkname so it will be processed just before the restart-masq).

I hope, this information will be useful.

Hanno Stockhausen
Title: Re: portforwarding (Solution)
Post by: Charlie Brady on September 19, 2002, 07:01:26 PM
Hanno Stockhausen wrote:

> Basically the solution to this is rather simple. When you
> change a forwarding rule the event remoteacces-update will be
> signaled, which builds a new masq file under /etc/rc.d.
> Unfortunately the external ip in the forwarding rule is hard
> coded in that file. So when an ip-change occurs, the masq
> file will be read again, but still has the old ip in it. What
> you need to do is, to trigger the recreation of the masq file
> with your new ip address.

Or don't hard code the IP address into the rules.

If you look at the masq file, you'll see that the other rules are doing a run-time lookup of the correct address, using $OUTERNET. The portforwarding contrib should be updated to do the same thing.

Charlie
Title: Re: portforwarding (Solution)
Post by: Guck Puppy on October 09, 2002, 09:53:32 PM
So Darrel, the date on your rpm is 09-21, did you update your contrib to not hard code the IP address?

G