Начальная настройка accel-ppp

Compilation and installation questions and stories
Mint
Posts: 2
Joined: 07 Feb 2017, 07:15

Re: Начальная настройка accel-ppp

Post by Mint »

Для того чтобы приходили запросы нужно назначить ip adress на D-link
config ipif System ipaddress 192.168.11.62/26 vlan VLAN111
И шлюз create iproute default 192.168.11.1
aaa
Posts: 8
Joined: 04 Feb 2017, 13:52

Re: Начальная настройка accel-ppp

Post by aaa »

Попробовал через другой коммутатор DES 3526, как отписались выше, дал коммутатору влан 111 с ип 11.5/24, тоже не помогло, расском. строки в секции ipoe

Code: Select all

l4-redirect-ipset=l4redirect
l4-redirect-on-reject=300
И ip стал получать , появился интерфейс

Code: Select all

ipoe0     Link encap:Ethernet  HWaddr 00:15:17:89:75:11
          inet addr:192.168.11.1  P-t-P:192.168.11.2 
Но инета нет,
sysctl.conf

Code: Select all

net.ipv4.ip_forward=1
net.ipv4.neigh.default.gc_thresh1 = 1024
net.ipv4.neigh.default.gc_thresh2 = 2048
net.ipv4.neigh.default.gc_thresh3 = 4096
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1
iptables -L

Code: Select all

-target     prot opt source               destination

Chain FORWARD (policy DROP)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere             ctstate RELATED,ESTABLISHED
ACCEPT     all  --  192.168.11.0/24      anywhere             ctstate NEW

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination

лог

Code: Select all

[2017-02-10 12:20:09]:  info: terminate, sig = 15
[2017-02-10 12:20:09]:  info: ipoe0: ipoe: session finished
[2017-02-10 12:20:10]:   msg: accel-ppp version af82c18fe8985b706740614d5ed738026ae68878
[2017-02-10 12:20:10]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 12:20:25]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 12:20:40]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 12:20:42]:  info: ipoe0: eth2.111: authentication failed
[2017-02-10 12:20:42]:  info: ipoe0: eth2.111: start temporary session (l4-redirect)
[2017-02-10 12:20:42]:  info: ipoe0: ipoe: session started
[2017-02-10 12:20:55]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
aaa
Posts: 8
Joined: 04 Feb 2017, 13:52

Re: Начальная настройка accel-ppp

Post by aaa »

Всё заработал инет, добавил цепочку в правило

iptables -t nat -A POSTROUTING -s 192.168.11.0/16 -d 0/0 -j MASQUERADE

:D

Но почему то периодически слетает интерфейс ipoe0, при этом интернет присутвует
Cramac
Posts: 98
Joined: 05 Jan 2017, 11:53
Contact:

Re: Начальная настройка accel-ppp

Post by Cramac »

если слетает, давайте лог соединения.
aaa
Posts: 8
Joined: 04 Feb 2017, 13:52

Re: Начальная настройка accel-ppp

Post by aaa »

Code: Select all

[2017-02-10 18:16:34]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 18:16:49]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 18:17:04]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 18:17:19]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 18:17:34]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 18:17:38]:  info: ipoe0: eth2.111: authentication failed
[2017-02-10 18:17:38]:  info: ipoe0: eth2.111: start temporary session (l4-redirect)
[2017-02-10 18:17:38]:  info: ipoe0: ipoe: session started
[2017-02-10 18:17:49]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 18:18:04]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:01:06]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:01:21]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:01:36]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:01:51]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:02:06]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:02:21]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:02:36]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:02:51]:  warn: net-snmp: Warning: Failed to connect to the agentx master agent ([NIL]):
[2017-02-10 19:03:02]:  info: ipoe0: ipoe: session finished
Cramac
Posts: 98
Joined: 05 Jan 2017, 11:53
Contact:

Re: Начальная настройка accel-ppp

Post by Cramac »

У Вас получается, что не проходит авторизация. Ип клиента добавляется в таблицу которую надо заворачивать на страницу типо нет денег.
В иптаблес у Вас вроде нет такого правила на редирект, поэтому интернет и работает.
Post Reply