Modify

Opened 7 years ago

Closed 5 years ago

Last modified 4 years ago

#9088 closed defect (fixed)

NAT reflection works only a few hours after boot

Reported by: matthias@… Owned by: jow
Priority: normal Milestone: Chaos Calmer 15.05
Component: base system Version: Backfire 10.03.1 RC4
Keywords: NAT reflection, NAT loopback Cc:

Description

NAT reflection (sometimes called NAT loopback) works only in the first hours after booting.

I am connected to the internet via pppoe.
My ISP disconnects the connection every 24 hours and I get a new IP address. I guess that NAT reflection stops working after obtaining a new IP address. I will check this in the next days.

(If you need more details or have a suggestion how I can analyze the problem more precise, please write me an email)

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by anonymous

Meanwhile, I checked my guess and indeed:

NAT reflection stops working exactly after obtaining a new IP address

comment:2 Changed 7 years ago by jow

  • Owner changed from developers to jow
  • Status changed from new to accepted

Try to add some debugging to the reflection hotplug in /etc/hotplug.d/ .

comment:3 Changed 7 years ago by matthias@…

I found a workaround for myself.

In /etc/ppp/if-up, I inserted the line

[ -z "$PPP_IPPARAM" ]
env -i ACTION="add" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "firewall"

right after the line

[ -z "$PPP_IPPARAM" ]
env -i ACTION="ifup" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface"

I wanted to supply a proper patch, but I have not yet found some time. Meanwhile my DSL modem broke, I bought a new device which has a modem, a router, a telephone system and a firmware that fulfills my requirement. I probably will not use openwrt in the next month. But maybe these comment will help someone.

Some thoughts while tyring to write a patch.

$DEVICE and $PROTO are not used in my call to hotplug-call, I could remove them.
Is /etc/ppp/if-up the right place. Why not one of the subdirectories of /etc/ppp/.
Is /etc/ppp/if-up the right place. You could call /etc/hotplug.d/firewall/10-nat-reflection in some /etc/hotplug.d/iface/ file.

comment:4 Changed 5 years ago by jow

  • Resolution set to fixed
  • Status changed from accepted to closed

Should be fixed in recent trunk.

comment:5 Changed 4 years ago by jow

  • Milestone changed from Backfire 10.03.2 to Chaos Calmer (trunk)

Milestone Backfire 10.03.2 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.