Подскажите как настроить.
Насторен pppoe сервер на Debian вот такой конфиг.
ptables -F INPUT
iptables -F OUTPUT
iptables -F FORWARD
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
echo 1 > /proc/sys/net/ipv4/ip_forward
pppoe-server -I eth1 -L 172.17.1.1 -O /etc/ppp/pppoe-server-options
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 172.17.1.0/255.255.255.0 -j MASQUERADE
iptables -t mangle -A POSTROUTING -s 172.17.1.2 -j MARK --set-mark 101
iptables -t mangle -A POSTROUTING -d 172.17.1.2 -j MARK --set-mark 102
Создал правила для cbq
DEVICE=eth2, 100Mbit, 10Mbit
RATE=128Kbit
WEIGHT=6Kbit
PRIO=5
MARK=101
DEVICE=eth0, 100Mbit, 10Mbit
RATE=128Kbit
WEIGHT=6Kbit
PRIO=5
MARK=102
ifconfig
eth0 Link encap:Ethernet HWaddr 00:1d:7d:7b:fb:cc
inet addr:192.168.4.101 Bcast:192.168.4.255 Mask:255.255.255.0
inet6 addr: fe80::21d:7dff:fe7b:fbcc/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20689 errors:0 dropped:664245774 overruns:0 frame:0
TX packets:15436 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19326909 (18.4 MiB) TX bytes:3403052 (3.2 MiB)
Interrupt:221
eth2 Link encap:Ethernet HWaddr 00:e0:4c:6e:01:d3
inet addr:192.168.5.1 Bcast:192.168.5.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:4cff:fe6e:1d3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9613 errors:0 dropped:0 overruns:0 frame:0
TX packets:9968 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2362535 (2.2 MiB) TX bytes:9217974 (8.7 MiB)
Interrupt:18 Base address:0xd000
Без pppoe сервера все работает. А как привязать к pppoe?
pppoe сервер и cbq
Модераторы: SLEDopit, Модераторы разделов