Dear list listeners,

I am tearing my hair out trying to get this to work, so I am humbly seeking
advice on how to get Bering 1.2, with pppoe on the internet side, to accept
a dial in using ppp again on the internal side of this  connection.

The good news is that the dial in will receive and accept the call via
mgetty, and will start pppd as its gets the password and lcp connection and
discissions, ip-up is reached and executed although nothing exists in it as
seen below:

Nov 25 08:45:01 firewall /USR/SBIN/CRON[31332]: (root) CMD
(/etc/multicron-p)
Nov 25 08:53:01 firewall pppd[8591]: pppd 2.4.1 started by LOGIN, uid 0
Nov 25 08:53:01 firewall pppd[8591]: using channel 25
Nov 25 08:53:01 firewall pppd[8591]: Using interface ppp1
Nov 25 08:53:01 firewall pppd[8591]: Connect: ppp1 <--> /dev/ttyS0
Nov 25 08:53:01 firewall pppd[8591]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<auth pap> <magic 0x7a06aae5> <pcomp> <accomp>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [LCP ConfReq id=0x3 <asyncmap
0xa0000> <magic 0x1c6a6> <pcomp> <accomp> <callback CBCP>]
Nov 25 08:53:04 firewall pppd[8591]: sent [LCP ConfRej id=0x3 <callback
CBCP>]
Nov 25 08:53:04 firewall pppd[8591]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
<auth pap> <magic 0x7a06aae5> <pcomp> <accomp>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [LCP ConfReq id=0x4 <asyncmap
0xa0000> <magic 0x1c6a6> <pcomp> <accomp>]
Nov 25 08:53:04 firewall pppd[8591]: sent [LCP ConfAck id=0x4 <asyncmap
0xa0000> <magic 0x1c6a6> <pcomp> <accomp>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
<auth pap> <magic 0x7a06aae5> <pcomp> <accomp>]
Nov 25 08:53:04 firewall pppd[8591]: sent [LCP EchoReq id=0x0
magic=0x7a06aae5]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [PAP AuthReq id=0x1 user="a_user"
password=<hidden>]
Nov 25 08:53:04 firewall pppd[8591]: sent [PAP AuthAck id=0x1 "Login ok"]
Nov 25 08:53:04 firewall pppd[8591]: sent [IPCP ConfReq id=0x1 <addr
192.168.5.254> <compress VJ 0f 01>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [LCP EchoRep id=0x0 magic=0x1c6a6]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [IPCP ConfReq id=0x1 <compress VJ
0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-wins 0.0.0.0> <ms-wins 0.0.0.0>]
Nov 25 08:53:04 firewall pppd[8591]: sent [IPCP ConfRej id=0x1 <ms-wins
0.0.0.0> <ms-wins 0.0.0.0>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [CCP ConfReq id=0x1 < 12 06 00 00
00 01> < 11 05 00 01 04>]
Nov 25 08:53:04 firewall pppd[8591]: Unsupported protocol 'Compression
Control Protocol' (0x80fd) received
Nov 25 08:53:04 firewall pppd[8591]: sent [LCP ProtRej id=0x2 80 fd 01 01 00
0f 12 06 00 00 00 01 11 05 00 01 04]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [IPCP ConfAck id=0x1 <addr
192.168.5.254> <compress VJ 0f 01>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [IPCP ConfReq id=0x2 <compress VJ
0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0>]
Nov 25 08:53:04 firewall pppd[8591]: sent [IPCP ConfNak id=0x2 <addr
192.168.5.99> <ms-dns1 192.168.5.254>]
Nov 25 08:53:04 firewall pppd[8591]: rcvd [IPCP ConfReq id=0x3 <compress VJ
0f 01> <addr 192.168.5.99> <ms-dns1 192.168.5.254>]
Nov 25 08:53:04 firewall pppd[8591]: sent [IPCP ConfAck id=0x3 <compress VJ
0f 01> <addr 192.168.5.99> <ms-dns1 192.168.5.254>]
Nov 25 08:53:04 firewall pppd[8591]: found interface eth1 for proxy arp
Nov 25 08:53:04 firewall pppd[8591]: local  IP address 192.168.5.254
Nov 25 08:53:04 firewall pppd[8591]: remote IP address 192.168.5.99
Nov 25 08:53:04 firewall pppd[8591]: Script /etc/ppp/ip-up started (pid
4309)
Nov 25 08:53:04 firewall pppd[8591]: Script /etc/ppp/ip-up finished (pid
4309), status = 0x100
Nov 25 08:53:37 firewall pppd[7359]: No response to 3 echo-requests
Nov 25 08:53:37 firewall pppd[7359]: Serial link appears to be disconnected.
Nov 25 08:53:37 firewall pppd[7359]: Couldn't increase MTU to 1500.
Nov 25 08:53:37 firewall pppd[7359]: Couldn't increase MRU to 1500
Nov 25 08:53:43 firewall pppd[7359]: Connection terminated.
Nov 25 08:53:43 firewall pppd[7359]: Connect time 561.8 minutes.
Nov 25 08:53:43 firewall pppd[7359]: Sent 383329 bytes, received 1140685
bytes.
Nov 25 08:53:43 firewall pppd[7359]: Doing disconnect
Nov 25 08:54:04 firewall pppd[8591]: Hangup (SIGHUP)
Nov 25 08:54:04 firewall pppd[8591]: Modem hangup
Nov 25 08:54:04 firewall pppd[8591]: Script /etc/ppp/ip-down started (pid
1933)
Nov 25 08:54:04 firewall pppd[8591]: Connection terminated.
Nov 25 08:54:04 firewall pppd[8591]: Connect time 1.1 minutes.
Nov 25 08:54:04 firewall pppd[8591]: Sent 446 bytes, received 842 bytes.
Nov 25 08:54:04 firewall pppd[8591]: Waiting for 1 child processes...
Nov 25 08:54:04 firewall pppd[8591]:   script /etc/ppp/ip-down, pid 1933
Nov 25 08:54:04 firewall pppd[8591]: Script /etc/ppp/ip-down finished (pid
1933), status = 0x100
Nov 25 08:54:04 firewall pppd[8591]: Exit.
Nov 25 08:54:13 firewall pppd[7359]: Sending PADI
Nov 25 08:54:32 firewall pppd[7359]: HOST_UNIQ successful match
Nov 25 08:54:32 firewall pppd[7359]: HOST_UNIQ successful match
Nov 25 08:54:32 firewall pppd[7359]: Got connection: a63
Nov 25 08:54:32 firewall pppd[7359]: Connecting PPPoE socket:
00:60:38:f9:40:1e 630a eth0 0x807c260
Nov 25 08:54:32 firewall pppd[7359]: using channel 26
Nov 25 08:54:32 firewall pppd[7359]: Using interface ppp0
Nov 25 08:54:32 firewall pppd[7359]: Connect: ppp0 <--> eth0
Nov 25 08:54:32 firewall pppd[7359]: Couldn't increase MTU to 1500.
Nov 25 08:54:32 firewall pppd[7359]: Couldn't increase MRU to 1500
Nov 25 08:54:33 firewall pppd[7359]: Couldn't increase MTU to 1500.
Nov 25 08:54:33 firewall pppd[7359]: Couldn't increase MRU to 1500
Nov 25 08:54:33 firewall pppd[7359]: Couldn't increase MTU to 1500.
Nov 25 08:54:33 firewall pppd[7359]: Couldn't increase MRU to 1500
Nov 25 08:54:33 firewall pppd[7359]: Couldn't increase MTU to 1520.
Nov 25 08:54:33 firewall pppd[7359]: Couldn't increase MRU to 1500
Nov 25 08:54:33 firewall pppd[7359]: Cannot determine ethernet address for
proxy ARP
Nov 25 08:54:33 firewall pppd[7359]: local  IP address v.x.y.z
Nov 25 08:54:33 firewall pppd[7359]: remote IP address v.x.y.q
Nov 25 09:00:01 firewall /USR/SBIN/CRON[31055]: (root) CMD
(/etc/multicron-p)
Nov 25 09:15:01 firewall /USR/SBIN/CRON[19375]: (root) CMD
(/etc/multicron-p)

Now the catch is that when the connection drops out (why it does it, I do
not know why) the external pppoe connection is then also torn down, and it
has to reconnect and get a new address, which it does. I can only assume
that it is something to do with the pppd setup interacting between the two
ppp interfaces.

I include my /etc/network/interfaces, and /etc/ppp/peers/dialin,
/etc/ppp/peers/adslprovider, and /etc/ppp/options and /etc/options.ttyS0
files in the hope that someone can point out why this interaction is
occurring. I have no options file.

pppd is called from login.config as:

/AutoPPP/ - - /usr/sbin/pppd debug file /etc/ppp/options.ttyS0

So as far as I can see the dial in connection should not reference
/etc/ppp/options

# /etc/network/interfaces -- configuration file for LEAF network
# J. Nilo, April 2002
#
# Loopback interface.
auto lo
iface lo inet loopback

auto ppp0
iface ppp0 inet ppp
    pre-up ip link set eth0 up
    provider adslprovider eth0

iface ppp1 inet ppp
    provider dialin

auto eth1
iface eth1 inet static
        address 192.168.5.254
        masklen 24
        broadcast 192.168.5.255

auto eth2
iface eth2 inet static
        address 203.a.b.c
        masklen 27
        broadcast 203.a.b.255
# ---<End of File>---


/etc/ppp/peers/dialin

debug
ms-dns 192.168.5.254
asyncmap 0
auth
crtscts
modem
noccp
-detach
+pap
-chap
+pap
require-pap
refuse-chap
proxyarp
lcp-echo-interval 300
lcp-echo-failure 4
noipx
# ---<End of File>---


/etc/ppp/peers/adslprovider

# Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
plugin /usr/lib/pppd/pppoe.so
name "[EMAIL PROTECTED]"
pty "pppoe -I eth0 -T 80 -m 1452"
noipdefault
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1492
# ---<End of File>---

/etc/ppp/options is empty

/etc/ppp/options.ttyS0

debug
-detach
auth
asyncmap 0
modem
crtscts
lock
noccp
+pap
require-pap
refuse-chap
proxyarp
lcp-echo-interval 300
lcp-echo-failure 10
ms-dns 192.168.5.254
netmask 255.255.255.0
192.168.5.254:192.168.5.99
# ---<End of File>---

I appreciate Shorewall plays a part in this, but I have not yet seen one
rejected packet in its logs, and it is setup to allow masq from
192.168.5.0/24 (which is my internal network) and this works as well as a
non mentioned wlan setup using hostap that is working fine as well.

Can anyone shed some light on this, otherwise I will have to go back to
Dachstein which worked very easily and was easy to set up. By far the most
difficult this in this setup is pppd however the debian format
/etc/network/interfaces file is an absolute mystery to me never having used
anything like it before.

With many thanks,
Matthew



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to