![]()
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch
Kernel: Versions since 2.0.30
Example: You select a webpage, the connection is established but you will only
see the site after a Reload.
lx-suse)
does already contain this patch.
echo 0 > /proc/sys/net/ipv4/ip_dynaddr: disablen
echo 1 > /proc/sys/net/ipv4/ip_dynaddr: enablen
echo 2 > /proc/sys/net/ipv4/ip_dynaddr: enablen im verbose-mode (Mehr Meldungen)
/sbin/init.d/boot.local.
Just for making sure: there should be something like
[..] Sep 30 10:36:04 wilma ipppd[729]: local IP address 10.10.129.228 Sep 30 10:36:04 wilma ipppd[729]: remote IP address 192.44.86.9 Sep 30 10:36:08 wilma kernel: ip_fw_masquerade(): change maddr from 192.168.42.1 to 10.10.129.228in
/var/log/messages (using echo 2) if it was successful.
Hint:
This only works (up to 2.0.32) if the connection is established from a
masqeraded address. If this is done by the Linux machine itself it doesn't
work.
The following patch should solve this problem. Thanks to Erik Correy
--- linux/net/ipv4/tcp_output.c Thu Oct 16 15:38:49 1997
+++ linux-2.0.31pre9-ec/net/ipv4/tcp_output.c Thu Oct 16 15:03:36 1997
@@ -578,7 +560,7 @@
}
}
skb->raddr=rt->rt_gateway;
- if (skb->dev !=dev && sk->state == TCP_SYN_SENT && sysctl_ip_dynaddr)
+ if ((skb->dev !=dev || skb->dev->pa_addr != skb->ip_hdr->saddr) && sk->state == TCP_SYN_SENT && sysctl_ip_dynaddr)
ip_rewrite_addrs(sk, skb, dev);
skb->dev=dev;
skb->arp=1;
Thanks to: Christian Meyer (smart@on-line.de)![]()
See also:
S.u.S.E. ISDN quick-install guide
dynamic IP numbers : setting the (default-) route
Applying kernel patches
Keeping control of isdn4linux![]()
Keywords: ISDN, SYNCPPP, IPPPD, DIAL ON DEMAND, DYNAMISCHE IP-NUMMERN, PAKET GEHT VERLOREN
![]()
Categories:
PPP
![]()
Feedback welcome: Send Mail to kfr@suse.de (Please give the following subject: SDB-dynippatch)
![]()
Mainpage
Searchform
History
Versions
Categories
Contents
Deutsch