virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
Сделал всё (почти) один в один, как товарищ свыше. А именно: /etc/network.d/corbina CONNECTION='ethernet' DESCRIPTION='Beeline' INTERFACE='eth0' IP='dhcp' /etc/rc.conf NETWORKS=(corbina) POST_UP="ip route add 213.234.192.8 dev eth0 ; ip route add 85.21.192.3 dev eth0 ; ip route add 85.21.0.251 via 10.163.88.1 dev eth0 metric 202" /etc/xl2tpd/xl2tpd.conf [global] access control = yes auth file = /etc/ppp/chap-secrets [lac corbina] lns = 85.21.0.251 redial = yes redial timeout = 5 require chap = yes require authentication = no name = 0893304887 ppp debug = yes pppoptfile = /etc/ppp/options.xl2tpd require pap = no autodial = yes /etc/ppp/options.xl2tpd name 0893304887 remotename L2TP ipparam corbina connect /bin/true mru 1460 mtu 1460 nodeflate nobsdcomp persist maxfail 0 nopcomp noaccomp defaultroute usepeerdns Результаты: После поднятия netcfg corbina: % ip addr ; ip route 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:24:8c:4c:69:53 brd ff:ff:ff:ff:ff:ff inet 10.163.93.224/21 brd 10.163.95.255 scope global eth0 inet6 fe80::224:8cff:fe4c:6953/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:23:4e:df:c9:50 brd ff:ff:ff:ff:ff:ff 10.0.0.0/8 via 10.163.88.1 dev eth0 metric 202 10.163.88.0/21 dev eth0 proto kernel scope link src 10.163.93.224 metric 202 78.107.52.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.0.251 via 10.163.88.1 dev eth0 metric 202 85.21.72.80/28 via 10.163.88.1 dev eth0 metric 202 85.21.79.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.90.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.192.3 dev eth0 scope link 213.234.192.8 dev eth0 scope link 217.118.84.0/24 via 10.163.88.1 dev eth0 metric 202 233.33.210.0/24 via 10.163.93.224 dev eth0 metric 202 После поднятия x2ltpd: % ip addr ; ip route 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:24:8c:4c:69:53 brd ff:ff:ff:ff:ff:ff inet 10.163.93.224/21 brd 10.163.95.255 scope global eth0 inet6 fe80::224:8cff:fe4c:6953/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:23:4e:df:c9:50 brd ff:ff:ff:ff:ff:ff 5: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1460 qdisc pfifo_fast state UNKNOWN qlen 3 link/ppp inet 95.26.54.22 peer 85.21.0.251/32 scope global ppp0 default dev ppp0 scope link 10.0.0.0/8 via 10.163.88.1 dev eth0 metric 202 10.163.88.0/21 dev eth0 proto kernel scope link src 10.163.93.224 metric 202 78.107.52.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.0.251 dev ppp0 proto kernel scope link src 95.26.54.22 85.21.0.251 via 10.163.88.1 dev eth0 metric 202 85.21.72.80/28 via 10.163.88.1 dev eth0 metric 202 85.21.79.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.90.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.192.3 dev eth0 scope link 213.234.192.8 dev eth0 scope link 217.118.84.0/24 via 10.163.88.1 dev eth0 metric 202 233.33.210.0/24 via 10.163.93.224 dev eth0 metric 202 Инернета нет. В логе в целом всё то же самое: Dec 11 15:27:25 arch dhcpcd[1505]: version 5.2.12 starting Dec 11 15:27:25 arch dhcpcd[1505]: eth0: broadcasting for a lease Dec 11 15:27:30 arch dhcpcd[1505]: eth0: offered 10.163.93.224 from 78.107.63.220 Dec 11 15:27:30 arch dhcpcd[1505]: eth0: acknowledged 10.163.93.224 from 78.107.63.220 Dec 11 15:27:30 arch dhcpcd[1505]: eth0: checking for 10.163.93.224 Dec 11 15:27:35 arch dhcpcd[1505]: eth0: leased 10.163.93.224 for 604800 seconds Dec 11 15:27:35 arch dhcpcd[1505]: forked to background, child pid 1536 Dec 11 15:27:55 arch pppd[898]: Failed to open /dev/pts/1: No such file or directory Dec 11 15:28:05 arch xl2tpd[1581]: setsockopt recvref[22]: Protocol not available Dec 11 15:28:05 arch xl2tpd[1581]: This binary does not support kernel L2TP. Dec 11 15:28:05 arch xl2tpd[1582]: xl2tpd version xl2tpd-1.3.0 started on arch PID:1582 Dec 11 15:28:05 arch xl2tpd[1582]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. Dec 11 15:28:05 arch xl2tpd[1582]: Forked by Scott Balmos and David Stipp, (C) 2001 Dec 11 15:28:05 arch xl2tpd[1582]: Inherited by Jeff McAdams, (C) 2002 Dec 11 15:28:05 arch xl2tpd[1582]: Forked again by Xelerance (www.xelerance.com) (C) 2006 Dec 11 15:28:05 arch xl2tpd[1582]: Listening on IP address 0.0.0.0, port 1701 Dec 11 15:28:05 arch xl2tpd[1582]: Connecting to host 85.21.0.251, port 1701 Dec 11 15:28:05 arch xl2tpd[1582]: Connection established to 85.21.0.251, 1701. Local: 27631, Remote: 30674 (ref=0/0). Dec 11 15:28:05 arch xl2tpd[1582]: Calling on tunnel 27631 Dec 11 15:28:05 arch xl2tpd[1582]: Call established with 85.21.0.251, Local: 3335, Remote: 11121, Serial: 1 (ref=0/0) Dec 11 15:28:05 arch xl2tpd[1582]: start_pppd: I'm running: Dec 11 15:28:05 arch xl2tpd[1582]: "/usr/sbin/pppd" Dec 11 15:28:05 arch xl2tpd[1582]: "passive" Dec 11 15:28:05 arch xl2tpd[1582]: "nodetach" Dec 11 15:28:05 arch xl2tpd[1582]: ":" Dec 11 15:28:05 arch xl2tpd[1582]: "name" Dec 11 15:28:05 arch xl2tpd[1582]: "0893304887" Dec 11 15:28:05 arch xl2tpd[1582]: "debug" Dec 11 15:28:05 arch xl2tpd[1582]: "file" Dec 11 15:28:05 arch xl2tpd[1582]: "/etc/ppp/options.xl2tpd" Dec 11 15:28:05 arch xl2tpd[1582]: "/dev/pts/4" Dec 11 15:28:05 arch pppd[1583]: pppd 2.4.5 started by virus_found, uid 0 Dec 11 15:28:05 arch pppd[1583]: Script /bin/true finished (pid 1584), status = 0x0 Dec 11 15:28:05 arch pppd[1583]: Serial connection established. Dec 11 15:28:05 arch pppd[1583]: using channel 2 Dec 11 15:28:05 arch pppd[1583]: Using interface ppp0 Dec 11 15:28:05 arch pppd[1583]: Connect: ppp0 <--> /dev/pts/4 Dec 11 15:28:06 arch pppd[1583]: sent [LCP ConfReq id=0x1 <mru 1460> <asyncmap 0x0> <magic 0x87e01570>] Dec 11 15:28:06 arch pppd[1583]: Dec 11 15:28:06 arch pppd[1583]: sent [LCP ConfRej id=0x1 <pcomp> <accomp>] Dec 11 15:28:06 arch pppd[1583]: rcvd [LCP ConfAck id=0x1 <mru 1460> <asyncmap 0x0> <magic 0x87e01570>] Dec 11 15:28:06 arch pppd[1583]: Dec 11 15:28:06 arch pppd[1583]: Dec 11 15:28:06 arch pppd[1583]: sent [LCP EchoReq id=0x0 magic=0x87e01570] Dec 11 15:28:06 arch pppd[1583]: rcvd [LCP EchoRep id=0x0 magic=0x6c048e54] Dec 11 15:28:06 arch pppd[1583]: Dec 11 15:28:06 arch pppd[1583]: Dec 11 15:28:06 arch pppd[1583]: rcvd [CHAP Success id=0x1 ""] Dec 11 15:28:06 arch pppd[1583]: CHAP authentication succeeded Dec 11 15:28:06 arch pppd[1583]: CHAP authentication succeeded Dec 11 15:28:06 arch pppd[1583]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.0.2> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] Dec 11 15:28:06 arch pppd[1583]: rcvd [IPCP ConfReq id=0x1 <addr 85.21.0.251>] Dec 11 15:28:06 arch pppd[1583]: sent [IPCP ConfAck id=0x1 <addr 85.21.0.251>] Dec 11 15:28:08 arch pppd[1583]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] Dec 11 15:28:08 arch pppd[1583]: sent [IPCP ConfReq id=0x2 <addr 192.168.0.2> <ms-dns1 0.0.0.0> <ms-dns2 0.0.0.0>] Dec 11 15:28:08 arch pppd[1583]: rcvd [IPCP ConfNak id=0x2 <addr 95.26.54.22> <ms-dns1 85.21.192.5> <ms-dns2 213.234.192.7>] Dec 11 15:28:08 arch pppd[1583]: sent [IPCP ConfReq id=0x3 <addr 95.26.54.22> <ms-dns1 85.21.192.5> <ms-dns2 213.234.192.7>] Dec 11 15:28:08 arch pppd[1583]: rcvd [IPCP ConfAck id=0x3 <addr 95.26.54.22> <ms-dns1 85.21.192.5> <ms-dns2 213.234.192.7>] Dec 11 15:28:08 arch pppd[1583]: local IP address 95.26.54.22 Dec 11 15:28:08 arch pppd[1583]: remote IP address 85.21.0.251 Dec 11 15:28:08 arch pppd[1583]: primary DNS address 85.21.192.5 Dec 11 15:28:08 arch pppd[1583]: secondary DNS address 213.234.192.7 Dec 11 15:28:08 arch pppd[1583]: Script /etc/ppp/ip-up started (pid 1585) Dec 11 15:28:08 arch pppd[1583]: Script /etc/ppp/ip-up finished (pid 1585), status = 0x0 Dec 11 15:28:25 arch pppd[898]: Failed to open /dev/pts/1: No such file or directory Dec 11 15:28:55 arch pppd[898]: Failed to open /dev/pts/1: No such file or directory Dec 11 15:29:25 arch pppd[898]: Failed to open /dev/pts/1: No such file or directory Dec 11 15:29:55 arch pppd[898]: Failed to open /dev/pts/1: No such file or directory Dec 11 15:30:25 arch pppd[898]: Failed to open /dev/pts/1: No such file or directory Dec 11 15:30:36 arch pppd[1583]: No response to 4 echo-requests Dec 11 15:30:36 arch pppd[1583]: Serial link appears to be disconnected. Dec 11 15:30:36 arch pppd[1583]: Connect time 2.5 minutes. Dec 11 15:30:36 arch pppd[1583]: Sent 4025026726 bytes, received 0 bytes. Dec 11 15:30:36 arch xl2tpd[1582]: handle_avps: don't know how to handle atribute 46. Dec 11 15:30:36 arch xl2tpd[1582]: handle_avps: don't know how to handle atribute 104. Dec 11 15:30:36 arch xl2tpd[1582]: control_finish: Connection closed to 85.21.0.251, serial 1 (Locally generated disconnect) Dec 11 15:30:36 arch xl2tpd[1582]: Terminating pppd: sending TERM signal to pid 1583 Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch pppd[1583]: Script /etc/ppp/ip-down started (pid 1610) Dec 11 15:30:36 arch pppd[1583]: sent [LCP TermReq id=0x2 "Peer not responding"] Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch xl2tpd[1582]: get_call: can't find call 3335 in tunnel 27631 (ref=0/0) Dec 11 15:30:36 arch xl2tpd[1582]: check_control: Received out of order control packet on tunnel 30674 (got 2, expected 3) Dec 11 15:30:36 arch pppd[1583]: Terminating on signal 15 Dec 11 15:30:36 arch pppd[1583]: rcvd [LCP TermReq id=0x3] Dec 11 15:30:36 arch pppd[1583]: sent [LCP TermAck id=0x3] Dec 11 15:30:36 arch pppd[1583]: Modem hangup Dec 11 15:30:36 arch pppd[1583]: Connection terminated. Dec 11 15:30:37 arch pppd[1583]: Script /etc/ppp/ip-down finished (pid 1610), status = 0x0 Dec 11 15:30:37 arch pppd[1583]: Exit. |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
Хорошо, вот что выходит с netcfg. 1.Создал профайл corbina: CONNECTION='ethernet' DESCRIPTION='A basic dhcp ethernet connection using iproute' INTERFACE='eth0' IP='dhcp' ## for DHCPv6 #IP6='dhcp' ## for IPv6 autoconfiguration #IP6='stateless' NETWORKS=(corbina) POST_UP="ip route add 85.21.0.251 via 10.163.88.1 dev eth0 metric 202" 4. Запустил x2ltpd даемон с этим конфигом: [global] access control = yes [lac corbina] lns = 85.21.0.251 redial = yes redial timeout = 1 require chap = yes require authentication = no name = 0893304887 ppp debug = yes pppoptfile = /etc/ppp/options.xl2tpd require pap = no autodial = yes tx bps = 100000000 После всего этого вот что имеем. ip addr: 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:24:8c:4c:69:53 brd ff:ff:ff:ff:ff:ff inet 10.163.93.224/21 brd 10.163.95.255 scope global eth0 inet6 fe80::224:8cff:fe4c:6953/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:23:4e:df:c9:50 brd ff:ff:ff:ff:ff:ff 18: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1460 qdisc pfifo_fast state UNKNOWN qlen 3 link/ppp inet 93.80.89.208 peer 85.21.0.251/32 scope global ppp0 default dev ppp0 scope link 10.0.0.0/8 via 10.163.88.1 dev eth0 metric 202 10.163.88.0/21 dev eth0 proto kernel scope link src 10.163.93.224 metric 202 78.107.52.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.0.251 dev ppp0 proto kernel scope link src 89.178.11.189 85.21.0.251 via 10.163.88.1 dev eth0 metric 202 85.21.72.80/28 via 10.163.88.1 dev eth0 metric 202 85.21.79.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.90.0/24 via 10.163.88.1 dev eth0 metric 202 217.118.84.0/24 via 10.163.88.1 dev eth0 metric 202 233.33.210.0/24 via 10.163.93.224 dev eth0 metric 202 Dec 4 18:53:15 arch xl2tpd[1522]: Calling on tunnel 56488 Dec 4 18:53:15 arch xl2tpd[1522]: Call established with 85.21.0.251, Local: 50001, Remote: 6212, Serial: 15 (ref=0/0) Dec 4 18:53:15 arch xl2tpd[1522]: start_pppd: I'm running: Dec 4 18:53:15 arch xl2tpd[1522]: "/usr/sbin/pppd" Dec 4 18:53:15 arch xl2tpd[1522]: "passive" Dec 4 18:53:15 arch xl2tpd[1522]: "nodetach" Dec 4 18:53:15 arch xl2tpd[1522]: ":" Dec 4 18:53:15 arch xl2tpd[1522]: "name" Dec 4 18:53:15 arch xl2tpd[1522]: "0893304887" Dec 4 18:53:15 arch xl2tpd[1522]: "debug" Dec 4 18:53:15 arch xl2tpd[1522]: "file" Dec 4 18:53:15 arch xl2tpd[1522]: "/etc/ppp/options.xl2tpd" Dec 4 18:53:15 arch xl2tpd[1522]: "/dev/pts/1" Dec 4 18:53:15 arch pppd[1650]: pppd 2.4.5 started by virus_found, uid 0 Dec 4 18:53:15 arch pppd[1650]: Script /bin/true finished (pid 1651), status = 0x0 Dec 4 18:53:15 arch pppd[1650]: Serial connection established. Dec 4 18:53:15 arch pppd[1650]: using channel 15 Dec 4 18:53:15 arch pppd[1650]: Using interface ppp0 Dec 4 18:53:15 arch pppd[1650]: Connect: ppp0 <--> /dev/pts/1 Dec 4 18:53:16 arch pppd[1650]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x26efef12>] Dec 4 18:53:16 arch pppd[1650]: rcvd [LCP ConfReq id=0x1 <mru 1460> <asyncmap 0xa0000> <auth chap MD5> <magic 0x4861dec7> <pcomp> <accomp>] Dec 4 18:53:16 arch pppd[1650]: sent [LCP ConfRej id=0x1 <pcomp> <accomp>] Dec 4 18:53:16 arch pppd[1650]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x26efef12>] Dec 4 18:53:16 arch pppd[1650]: rcvd [LCP ConfReq id=0x2 <mru 1460> <asyncmap 0xa0000> <auth chap MD5> <magic 0x4861dec7>] Dec 4 18:53:16 arch pppd[1650]: sent [LCP ConfAck id=0x2 <mru 1460> <asyncmap 0xa0000> <auth chap MD5> <magic 0x4861dec7>] Dec 4 18:53:16 arch pppd[1650]: sent [LCP EchoReq id=0x0 magic=0x26efef12] Dec 4 18:53:16 arch pppd[1650]: rcvd [LCP EchoRep id=0x0 magic=0x4861dec7] Dec 4 18:53:16 arch pppd[1650]: Dec 4 18:53:16 arch pppd[1650]: Dec 4 18:53:16 arch pppd[1650]: rcvd [CHAP Success id=0x1 ""] Dec 4 18:53:16 arch pppd[1650]: CHAP authentication succeeded Dec 4 18:53:16 arch pppd[1650]: CHAP authentication succeeded Dec 4 18:53:16 arch pppd[1650]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.0.2>] Dec 4 18:53:16 arch pppd[1650]: rcvd [IPCP ConfReq id=0x1 <addr 85.21.0.251>] Dec 4 18:53:16 arch pppd[1650]: sent [IPCP ConfAck id=0x1 <addr 85.21.0.251>] Dec 4 18:53:18 arch pppd[1650]: rcvd [IPCP ConfReq id=0x2 <addr 85.21.0.251>] Dec 4 18:53:18 arch pppd[1650]: sent [IPCP ConfAck id=0x2 <addr 85.21.0.251>] Dec 4 18:53:18 arch pppd[1650]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] Dec 4 18:53:18 arch pppd[1650]: sent [IPCP ConfReq id=0x2 <addr 192.168.0.2>] Dec 4 18:53:18 arch pppd[1650]: rcvd [IPCP ConfNak id=0x2 <addr 93.80.89.208>] Dec 4 18:53:18 arch pppd[1650]: sent [IPCP ConfReq id=0x3 <addr 93.80.89.208>] Dec 4 18:53:18 arch pppd[1650]: rcvd [IPCP ConfAck id=0x3 <addr 93.80.89.208>] Dec 4 18:53:18 arch pppd[1650]: local IP address 93.80.89.208 Dec 4 18:53:18 arch pppd[1650]: remote IP address 85.21.0.251 Dec 4 18:53:18 arch pppd[1650]: Script /etc/ppp/ip-up started (pid 1652) Dec 4 18:53:18 arch pppd[1650]: Script /etc/ppp/ip-up finished (pid 1652), status = 0x0 Dec 4 18:53:46 arch pppd[1650]: No response to 2 echo-requests Dec 4 18:53:46 arch pppd[1650]: Serial link appears to be disconnected. Dec 4 18:53:46 arch pppd[1650]: Connect time 0.5 minutes. Dec 4 18:53:46 arch pppd[1650]: Sent 578097528 bytes, received 0 bytes. Dec 4 18:53:46 arch pppd[1650]: Script /etc/ppp/ip-down started (pid 1657) Dec 4 18:53:46 arch pppd[1650]: sent [LCP TermReq id=0x2 "Peer not responding"] Dec 4 18:53:46 arch pppd[1650]: Script /etc/ppp/ip-down finished (pid 1657), status = 0x1 Dec 4 18:53:46 arch pppd[1650]: rcvd [LCP TermAck id=0x2] Dec 4 18:53:46 arch pppd[1650]: Connection terminated. Dec 4 18:53:48 arch xl2tpd[1522]: handle_avps: don't know how to handle atribute 46. Dec 4 18:53:48 arch xl2tpd[1522]: handle_avps: don't know how to handle atribute 104. Dec 4 18:53:48 arch xl2tpd[1522]: control_finish: Connection closed to 85.21.0.251, serial 15 (Locally generated disconnect) Dec 4 18:53:48 arch xl2tpd[1522]: Terminating pppd: sending TERM signal to pid 1650 Dec 4 18:53:48 arch pppd[1650]: Terminating on signal 15 Dec 4 18:53:48 arch pppd[1650]: Exit. |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
А в директории /etc/ppp/ip-up.d/ внезапно оказался штатный файлик 00-dns.sh от ppp-2.4.5-2.#!/bin/sh if [ "$USEPEERDNS" = "1" -a -f /etc/ppp/resolv.conf ]; then [ -e /etc/resolv.conf ] && mv /etc/resolv.conf /etc/resolv.conf.backup.${IFNAME} mv /etc/ppp/resolv.conf /etc/resolv.conf chmod 644 /etc/resolv.conf fi bobartНе думаю, что я какой-то конфиг пропустил. Вот они все: viewtopic.php?f=16&t=3475&start=60#p64173 |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
cornerОк, спасибо. Убралось назойливое сообщение из лога :)Dec 3 17:11:13 arch pppd: Cannot determine ethernet address for proxy ARPПопробуйте в конфиг pppd добавить noproxyarp ? kurychНе менял его, штатный он от ppp 2.4.5-2: #!/bin/sh # # This script is run by pppd when there's a successful ppp connection. # # Execute all scripts in /etc/ppp/ip-up.d/ for ipup in /etc/ppp/ip-up.d/*.sh; do if [ -x $ipup ]; then # Parameters: interface-name tty-device speed local-IP-address remote-IP-address ipparam $ipup "[email protected]" fi done Эх, печаль, уже с месяц всё это терплю. На этой же машине в вин хр - всё с одного клика :( |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
SturgeonСпасибо, помогло! Сделал так:virus_foundВам надо сервер L2TP (85.21.0.248) прописать в постоянный маршрут, чтобы оно ходило через eth0. DHCP у Вас работает нормально. ip route add 85.21.0.248 via 10.163.88.1 dev eth0 metric 202 А интернета нет всё равно, в логе циклично крутится вот эта штука: Dec 3 17:11:10 arch xl2tpd[1759]: Calling on tunnel 12400 Dec 3 17:11:10 arch xl2tpd[1759]: Call established with 85.21.0.248, Local: 59907, Remote: 27673, Serial: 5 (ref=0/0) Dec 3 17:11:10 arch xl2tpd[1759]: start_pppd: I'm running: Dec 3 17:11:10 arch xl2tpd[1759]: "/usr/sbin/pppd" Dec 3 17:11:10 arch xl2tpd[1759]: "passive" Dec 3 17:11:10 arch xl2tpd[1759]: "nodetach" Dec 3 17:11:10 arch xl2tpd[1759]: ":" Dec 3 17:11:10 arch xl2tpd[1759]: "name" Dec 3 17:11:10 arch xl2tpd[1759]: "0893304887" Dec 3 17:11:10 arch xl2tpd[1759]: "debug" Dec 3 17:11:10 arch xl2tpd[1759]: "file" Dec 3 17:11:10 arch xl2tpd[1759]: "/etc/ppp/options.xl2tpd" Dec 3 17:11:10 arch xl2tpd[1759]: "/dev/pts/1" Dec 3 17:11:10 arch pppd[1817]: pppd 2.4.5 started by virus_found, uid 0 Dec 3 17:11:10 arch pppd[1817]: Script /bin/true finished (pid 1818), status = 0x0 Dec 3 17:11:10 arch pppd[1817]: Serial connection established. Dec 3 17:11:10 arch pppd[1817]: using channel 14 Dec 3 17:11:10 arch pppd[1817]: Using interface ppp0 Dec 3 17:11:10 arch pppd[1817]: Connect: ppp0 <--> /dev/pts/1 Dec 3 17:11:11 arch pppd[1817]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe790d338>] Dec 3 17:11:11 arch pppd[1817]: rcvd [LCP ConfReq id=0x1 <mru 1460> <asyncmap 0xa0000> <auth chap MD5> <magic 0x7b9c5215> <pcomp> <accomp>] Dec 3 17:11:11 arch pppd[1817]: sent [LCP ConfRej id=0x1 <pcomp> <accomp>] Dec 3 17:11:11 arch pppd[1817]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe790d338>] Dec 3 17:11:11 arch pppd[1817]: rcvd [LCP ConfReq id=0x2 <mru 1460> <asyncmap 0xa0000> <auth chap MD5> <magic 0x7b9c5215>] Dec 3 17:11:11 arch pppd[1817]: sent [LCP ConfAck id=0x2 <mru 1460> <asyncmap 0xa0000> <auth chap MD5> <magic 0x7b9c5215>] Dec 3 17:11:11 arch pppd[1817]: sent [LCP EchoReq id=0x0 magic=0xe790d338] Dec 3 17:11:11 arch pppd[1817]: rcvd [LCP EchoRep id=0x0 magic=0x7b9c5215] Dec 3 17:11:11 arch pppd[1817]: Dec 3 17:11:11 arch pppd[1817]: Dec 3 17:11:11 arch pppd[1817]: rcvd [CHAP Success id=0x1 ""] Dec 3 17:11:11 arch pppd[1817]: CHAP authentication succeeded Dec 3 17:11:11 arch pppd[1817]: CHAP authentication succeeded Dec 3 17:11:11 arch pppd[1817]: sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.0.2>] Dec 3 17:11:11 arch pppd[1817]: rcvd [IPCP ConfReq id=0x1 <addr 85.21.0.248>] Dec 3 17:11:11 arch pppd[1817]: sent [IPCP ConfAck id=0x1 <addr 85.21.0.248>] Dec 3 17:11:13 arch pppd[1817]: rcvd [IPCP ConfReq id=0x2 <addr 85.21.0.248>] Dec 3 17:11:13 arch pppd[1817]: sent [IPCP ConfAck id=0x2 <addr 85.21.0.248>] Dec 3 17:11:13 arch pppd[1817]: rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>] Dec 3 17:11:13 arch pppd[1817]: sent [IPCP ConfReq id=0x2 <addr 192.168.0.2>] Dec 3 17:11:13 arch pppd[1817]: rcvd [IPCP ConfNak id=0x2 <addr 95.27.167.118>] Dec 3 17:11:13 arch pppd[1817]: sent [IPCP ConfReq id=0x3 <addr 95.27.167.118>] Dec 3 17:11:13 arch pppd[1817]: rcvd [IPCP ConfAck id=0x3 <addr 95.27.167.118>] Dec 3 17:11:13 arch pppd[1817]: Cannot determine ethernet address for proxy ARP Dec 3 17:11:13 arch pppd[1817]: local IP address 95.27.167.118 Dec 3 17:11:13 arch pppd[1817]: remote IP address 85.21.0.248 Dec 3 17:11:13 arch pppd[1817]: Script /etc/ppp/ip-up started (pid 1819) Dec 3 17:11:13 arch pppd[1817]: Script /etc/ppp/ip-up finished (pid 1819), status = 0x0 Dec 3 17:11:41 arch pppd[1817]: No response to 2 echo-requests Dec 3 17:11:41 arch pppd[1817]: Serial link appears to be disconnected. Dec 3 17:11:41 arch pppd[1817]: Connect time 0.5 minutes. Dec 3 17:11:41 arch pppd[1817]: Sent 801398492 bytes, received 90 bytes. Dec 3 17:11:41 arch pppd[1817]: Script /etc/ppp/ip-down started (pid 1821) Dec 3 17:11:41 arch pppd[1817]: sent [LCP TermReq id=0x2 "Peer not responding"] Dec 3 17:11:41 arch pppd[1817]: Script /etc/ppp/ip-down finished (pid 1821), status = 0x1 Dec 3 17:11:41 arch pppd[1817]: rcvd [LCP TermAck id=0x2] Dec 3 17:11:41 arch pppd[1817]: Connection terminated. Dec 3 17:11:43 arch xl2tpd[1759]: handle_avps: don't know how to handle atribute 46. Dec 3 17:11:43 arch xl2tpd[1759]: handle_avps: don't know how to handle atribute 104. Dec 3 17:11:43 arch xl2tpd[1759]: control_finish: Connection closed to 85.21.0.248, serial 5 (Locally generated disconnect) Dec 3 17:11:43 arch xl2tpd[1759]: Terminating pppd: sending TERM signal to pid 1817 Dec 3 17:11:43 arch pppd[1817]: Terminating on signal 15 Dec 3 17:11:43 arch pppd[1817]: Exit. |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
bobartПочитал. For systems connecting to a single network, the network daemon may be more appropriate. Теперь у меня так: interface=eth0 address= netmask= broadcast= gateway= ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000 link/ether 00:24:8c:4c:69:53 brd ff:ff:ff:ff:ff:ff inet 10.163.93.224/21 brd 10.163.95.255 scope global eth0 inet6 fe80::224:8cff:fe4c:6953/64 scope link valid_lft forever preferred_lft forever 3: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000 link/ether 00:23:4e:df:c9:50 brd ff:ff:ff:ff:ff:ff 10.0.0.0/8 via 10.163.88.1 dev eth0 metric 202 10.163.88.0/21 dev eth0 proto kernel scope link src 10.163.93.224 metric 202 78.107.52.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.72.80/28 via 10.163.88.1 dev eth0 metric 202 85.21.79.0/24 via 10.163.88.1 dev eth0 metric 202 85.21.90.0/24 via 10.163.88.1 dev eth0 metric 202 217.118.84.0/24 via 10.163.88.1 dev eth0 metric 202 233.33.210.0/24 via 10.163.93.224 dev eth0 metric 202 Ну а в логах даемонов - network unreachable, как и всегда. Думаю, к новому году сделаю? Ещё эта дружественная модерация на форуме скорости не прибавляет. |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
interface=eth0 address= netmask= broadcast= gateway=10.123.160.1 |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
vadikМеньше месяца назад. А что именно у меня в rc.conf неправильно? |
virusfound |
|
Темы:
0
Сообщения:
19
Участник с: 27 ноября 2011
|
Недолго была радость на онлайме, где нужно было только поднимать eth0, теперь придётся давиться корбиной. Пробема очевидная - интернета нет :) Потратил три часа для разгадывания этой убийственной головоломки - тщетно. То network unreachable, то unknown host. Подозреваю, что смотреть надо в сторону rc.conf. /etc/rc.conf interface=eth0 eth0="dhcp" gateway="default gw 10.123.160.1 metric 10" #ROUTES=(gateway) /etc/xl2tpd/xl2tpd.conf [global] access control = yes auth file = /etc/ppp/chap-secrets [lac corbina] lns = 85.21.0.248 redial = yes redial timeout = 10 require chap = yes require authentication = no name = <login> ppp debug = yes pppoptfile = /etc/ppp/options.xl2tpd require pap = no autodial = yes tx bps = 100000000 /etc/ppp/options.xl2tpd lcp-echo-interval 10 lcp-echo-failure 2 name <login> remotename l2tp ipparam corbina connect /bin/true nodeflate nobsdcomp persist maxfail 0 nopcomp noaccomp defaultroute noauth /var/log/daemon.log Nov 27 16:50:33 arch dhcpcd[2041]: sending signal 1 to pid 1957 Nov 27 16:50:33 arch dhcpcd[2041]: waiting for pid 1957 to exit Nov 27 16:50:33 arch dhcpcd[1957]: received SIGHUP, releasing Nov 27 16:50:33 arch dhcpcd[1957]: eth0: releasing lease of 10.163.93.224 Nov 27 16:50:33 arch dhcpcd[1957]: eth0: removing interface Nov 27 16:50:36 arch dhcpcd[2072]: version 5.2.12 starting Nov 27 16:50:36 arch dhcpcd[2072]: eth0: waiting for carrier Nov 27 16:50:38 arch dhcpcd[2072]: eth0: carrier acquired Nov 27 16:50:38 arch dhcpcd[2072]: eth0: broadcasting for a lease Nov 27 16:50:43 arch dhcpcd[2072]: eth0: offered 10.163.93.224 from 78.107.63.220 Nov 27 16:50:43 arch dhcpcd[2072]: eth0: acknowledged 10.163.93.224 from 78.107.63.220 Nov 27 16:50:43 arch dhcpcd[2072]: eth0: checking for 10.163.93.224 Nov 27 16:50:48 arch dhcpcd[2072]: eth0: leased 10.163.93.224 for 604800 seconds Nov 27 16:50:48 arch dhcpcd[2072]: forked to background, child pid 2104 Nov 27 16:50:48 arch xl2tpd[2127]: setsockopt recvref[22]: Protocol not available Nov 27 16:50:48 arch xl2tpd[2127]: This binary does not support kernel L2TP. Nov 27 16:50:48 arch xl2tpd[2128]: xl2tpd version xl2tpd-1.3.0 started on arch PID:2128 Nov 27 16:50:48 arch xl2tpd[2128]: Written by Mark Spencer, Copyright (C) 1998, Adtran, Inc. Nov 27 16:50:48 arch xl2tpd[2128]: Forked by Scott Balmos and David Stipp, (C) 2001 Nov 27 16:50:48 arch xl2tpd[2128]: Inherited by Jeff McAdams, (C) 2002 Nov 27 16:50:48 arch xl2tpd[2128]: Forked again by Xelerance (www.xelerance.com) (C) 2006 Nov 27 16:50:48 arch xl2tpd[2128]: Listening on IP address 0.0.0.0, port 1701 Nov 27 16:50:48 arch xl2tpd[2128]: Connecting to host 85.21.0.248, port 1701 Nov 27 16:50:48 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:49 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:50 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:51 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:52 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:53 arch xl2tpd[2128]: Maximum retries exceeded for tunnel 49640. Closing. Nov 27 16:50:53 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:53 arch xl2tpd[2128]: Connection 0 closed to 85.21.0.248, port 1701 (Timeout) Nov 27 16:50:54 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:55 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:56 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:57 arch xl2tpd[2128]: udp_xmit failed to 85.21.0.248:1701 with err=-1:Network is unreachable Nov 27 16:50:58 arch xl2tpd[2128]: Unable to deliver closing message for tunnel 49640. Destroying anyway. Nov 27 16:50:58 arch xl2tpd[2128]: Will redial in 10 seconds # ping 85.21.192.3 connect: Network is unreachable # ping corbina.ru ping: unknown host corbina.ru |