[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

demand dialing with pppconfig



Hi,

I use pppconfig to set up my modem for dialout.  Everything works well 
if I use pon/poff from the command line.  However, I would like to use  
demand dialing.  I turned on demand dialing via pppconfig and also did 
a pon to start up pppd.  I looked at /var/log/syslog to verify that 
pppd was on -- it was.  An excerpt from my syslog shows that both my 
local and remote IP were set immediately without my modem dialing out:

Sep 22 18:51:02 golden modprobe: modprobe: Can't locate module 
char-major-108
Sep 22 18:51:02 golden pppd[11431]: pppd 2.4.1 started by root, uid 0
Sep 22 18:51:02 golden pppd[11431]: Using interface ppp0
Sep 22 18:51:02 golden pppd[11431]: Couldn't set pass-filter in kernel: 
Invalid
argument
Sep 22 18:51:02 golden pppd[11431]: Cannot determine ethernet address 
for proxy
ARP
Sep 22 18:51:02 golden pppd[11431]: local  IP address 10.64.64.64
Sep 22 18:51:02 golden pppd[11431]: remote IP address 10.112.112.112
Sep 22 18:51:26 golden kernel: Packet log: output DENY ppp0 PROTO=6 
10.64.64.64:3817 128.110.42.7:22 L=60 S=0x00 I=50598 F=0x0000 T=64 SYN 
(#5)
Sep 22 18:51:29 golden kernel: Packet log: output DENY ppp0 PROTO=6 
10.64.64.64:3817 128.110.42.7:22 L=60 S=0x00 I=50599 F=0x0000 T=64 SYN 
(#5)
Sep 22 18:51:35 golden kernel: Packet log: output DENY ppp0 PROTO=6 
10.64.64.64:3817 128.110.42.7:22 L=60 S=0x00 I=50600 F=0x0000 T=64 SYN 
(#5)
Sep 22 18:51:47 golden kernel: Packet log: output DENY ppp0 PROTO=6 
10.64.64.64:3817 128.110.42.7:22 L=60 S=0x00 I=50601 F=0x0000 T=64 SYN 
(#5)


I also have ipmasq installed on this machine.  I only use the 
firewalling rules that come as default.  In the above snippet, I tried 
to access a machine at 128.110.42.7, but am denied.   Or I should say 
that my modem is not dialing out and setting up "legitimate" local and 
remote IP that I would normally see with pppd running via manual 
pon/poff sequences.  A couple of questions:

1.  Should the local and remote IPs be set as they are when pppd is 
started with demand dialing in effect?

2.  Is ipmasq somehow messing things up with demand dialing such that 
some configureation needs to be adjusted for the two to play along 
together?

3.  Should I also set: /proc/sys/net/ipv4/ip_forward and 
/proc/sys/net/ipv4/ip_dynaddr to 1?

Another thing I observed when I was playing around with pppconfig, that 
when I went to change a setting back (turn off demand dialing), the 
file in /etc/ppp/peers/provider was not edited correctly, in that the 
changes were at the bottom of the file.  A quick edit of the file got 
things working with the manual pon/poff sequence.

Thanks,

John Schmidt






Reply to: