[Bug 259698] New: [DSL] patch /etc/ppp/if-up to support ip of access gateway not in local lan
https://bugzilla.novell.com/show_bug.cgi?id=259698 Summary: [DSL] patch /etc/ppp/if-up to support ip of access gateway not in local lan Product: openSUSE 10.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: fl@fl.priv.at QAContact: qa@suse.de When one sets up a PPTP DSL connection to an access gateway which does not reside in the local LAN but behind some gateway in the local LAN then one needs to patch /etc/ppp/if-up to add a route via that gateway to the access gateway. Otherwise pppd sets the route to the access gateway through the tunnel which breaks horribly. Already submitted after SuSE 9.2 cam out but has never been locked at as it seems. Attachment with patch follows later. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=259698 ------- Comment #1 from fl@fl.priv.at 2007-03-31 17:01 MST ------- Created an attachment (id=127987) --> (https://bugzilla.novell.com/attachment.cgi?id=127987&action=view) patch-etc-ppp-ip-up-for-dsl -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=259698 chrubis@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |zoz@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=259698 ------- Comment #2 from fl@fl.priv.at 2007-04-25 04:00 MST ------- Just changed from ifup to network manager. Seems as if I need to it a little different under the control of network manager. How can I reliably get to the real device behind eg. eth-id-00:a0:cc:dc:f1:c7 as ifstatus's output is different depending on what manages the network interfaces? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c3 Christian Zoz <zoz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mt@novell.com, max@novell.com Status|NEW |ASSIGNED --- Comment #3 from Christian Zoz <zoz@novell.com> 2007-09-03 04:26:16 MST --- Reinhard, Marius, can you have a look at this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c4 --- Comment #4 from Reinhard Max <max@novell.com> 2007-09-03 09:35:15 MST --- I think this is not only needed for PPTP, but for all sorts of tunnels that are configured to replace the default route through which they reach the remote tunnel endpoint. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c5 Christian Zoz <zoz@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|zoz@novell.com |mt@novell.com Status|ASSIGNED |NEW --- Comment #5 from Christian Zoz <zoz@novell.com> 2007-11-27 04:52:59 MST --- Marius you are more familiar with tunnels. I leave that up to you. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c6 --- Comment #6 from Reinhard Max <max@novell.com> 2007-11-27 05:50:54 MST --- BTW, OpenVPN uses a clever trick override the default route while the tunnel is up without actually deleting and replacing it. That way it doesn't need to remember the original default gateway and put it back when being shut down. It adds it's gateway as two routes to 0.0.0.0/1 and 128.0.0.0/1, which means that the default route is still there, but will never be used as long as these two routes are in place. See the def1 flag to the --redirect-gateway option in openvpn(8) for details. I think our scripts should do the same for tunnels that are configured to redirect the default route through itself, but need to restore it when shut down. That way the scripts don't have to keep track of the original default gateway, which means that the old default route will come back automatically, even when the tunnel interface is shut down manually with ifconfig or ip. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c7 --- Comment #7 from Friedrich Lobenstock <fl@fl.priv.at> 2007-11-27 11:11:55 MST --- No it's not that. Let me try to describe it again: * first we do DHCP on eg. eth0 and get a default route * then we do PPTP to a PPTP-Server which is reachable via the current default route * Now the PPTP connection changes the default route to point into the tunnel * Oops, how do we get to the tunnel endpoint? It was only reachable via the default route which now points INTO the tunnel device. 0.0.0.0/1 plus 128.0.0.0/1 gives the sam problem here. In this setup we'd need to detect that if the tunnel endpoint lives "behind" the default route we need to install a host route to that endpoint first before trying to build the tunnel. This host route will then "defeat" any other less specific routes as 0.0.0.0/0, 0.0.0.0/1 or 128.0.0.0/1. I could not find an entry point early enough to be able to hook in a script which does the "endpoint behind default route" and adding of the host route. Have a look into my modifications to /etc/ppp/ip-up, function add_PtProute(), which are sadly called to late in the tunnel building process. The only solution was to add the host route manualy everytime just before letting Kinternet "dial" the connection. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c8 --- Comment #8 from Friedrich Lobenstock <fl@fl.priv.at> 2007-11-27 11:24:18 MST --- A short update to the add_PtProute() function when using network manager: Replace: local REAL_DEVICE=$(ifstatus $DEVICE -o rc 2>/dev/null | awk 'NR>1{exit};1 {print $1}') with: local REAL_DEVICE=$(ifstatus $DEVICE -o rc 2>/dev/null | awk '/address/ {print $1}') because the output of ifstatus is not consistent with the case when network manager is not used. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698#c9 --- Comment #9 from Reinhard Max <max@novell.com> 2007-11-27 12:23:37 MST --- (In reply to comment #7 from Friedrich Lobenstock)
No it's not that. [...]
Yes, I know. My comment wasn't meant as the solution for your issue, but as an additional improvement "while we are there" for the scripts that support tunnels, which need to replace the default route. Sorry for the confusion. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User lnussel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c12 --- Comment #12 from Ludwig Nussel <lnussel@novell.com> 2009-01-27 02:14:11 MST --- I'm not sure ip-up is the correct place for this as it might have side effects for "real" point to point connections (like via modem). For example if you're connected via wlan router to your LAN (and maybe even to the internet) you do have a default route with gateway. Then you additionally start a modem connection. According to the routing table the remote endpoint of the ppp connection would then be reachable via your previous default route but in fact it isn't. So IMHO pptpd must ensure that it can reach it's tunnel endpoint in any case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User mt@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c13 Marius Tomaschewski <mt@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mt@novell.com |hvogel@novell.com --- Comment #13 from Marius Tomaschewski <mt@novell.com> 2009-01-27 02:30:06 MST --- (In reply to comment #12)
So IMHO pptpd must ensure that it can reach it's tunnel endpoint in any case.
Yes, it is a special pptp case and you're right -- pptd is a better place to fix it, than taking care in ip-up that this is really a pptp connection. Reassigning to the pptp maintainer. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User hvogel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c14 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |fl@fl.priv.at --- Comment #14 from Hendrik Vogelsang <hvogel@novell.com> 2009-01-27 05:49:27 MST --- There are a lot of way you can do this in an own script in ip-up.d. http://pptpclient.sourceforge.net/routing.phtml If i find the time (probably not) i might write some example ones. Friedrich can you maybe help me with this? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User fl@fl.priv.at added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c15 --- Comment #15 from Friedrich Lobenstock <fl@fl.priv.at> 2009-01-27 13:32:43 MST --- (In reply to comment #14)
Friedrich can you maybe help me with this?
Sorry guys, but you should have asked a long time ago. I've left the place where I had that specific PPTP setup. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User hvogel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c16 --- Comment #16 from Hendrik Vogelsang <hvogel@novell.com> 2009-01-27 13:38:04 MST --- so your knowledge about translating that documentation page into some useful example scripts has left too? ;) never mind. i try doing it myself if i find the time -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User fl@fl.priv.at added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c17 --- Comment #17 from Friedrich Lobenstock <fl@fl.priv.at> 2009-01-27 13:50:57 MST --- (In reply to comment #16)
so your knowledge about translating that documentation page into some useful example scripts has left too? ;)
I don't see much sense in that if I can not test anymore. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 User hvogel@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=259698#c18 --- Comment #18 from Hendrik Vogelsang <hvogel@novell.com> 2009-01-27 13:55:03 MST --- Alright. thanks anyway :) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=259698 Hendrik Vogelsang <hvogel@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|fl@fl.priv.at | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com