dummy 8 Posted 2011-07-21 05:12:25 Share Posted 2011-07-21 05:12:25 установил xl2tpd /etc/xl2tpd/xl2tpd.conf [global] port = 1701 [lns default] ip range = 10.5.1.220 local ip = 10.5.1.1 require chap = yes refuse pap = yes require authentication = yes name = VPNserver ;ppp debug = yes pppoptfile = /etc/ppp/options.xl2tpd length bit = yes exclusive = no /etc/ppp/options.xl2tpd ipcp-accept-local ipcp-accept-remote ms-dns 10.1.1.1 ms-dns 10.1.1.3 ms-wins 10.1.1.1 noccp auth crtscts idle 1800 nodefaultroute lock proxyarp connect-delay 5000 соединение проходит, обмен с инетом идет, но почемуто режется скорость на закачку с инета около 512-700 кбит ограничений никаких нет: [root@router]# ifconfig ppp0 ppp0 Link encap:Point-to-Point Protocol inet addr:10.5.1.1 P-t-P:10.5.1.220 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1400 Metric:1 RX packets:274199 errors:0 dropped:0 overruns:0 frame:0 TX packets:511638 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:29435327 (28.0 MiB) TX bytes:694556581 (662.3 MiB) [root@router]# tc -s qdisc show qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 Sent 164473311 bytes 295080 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 qdisc pfifo_fast 0: dev eth1 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 Sent 169321520 bytes 204223 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 qdisc pfifo_fast 0: dev ppp0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1 Sent 133612655 bytes 101215 pkt (dropped 0, overlimits 0 requeues 0) rate 0bit 0pps backlog 0b 0p requeues 0 eth0- смотрит в инет, eth1 - смотрит в сеть файрвол открыт: [root@router]# iptables -L -t nat Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination SNAT all -- 192.168.1.0/24 anywhere to:ххх.ххх.хх.хх Chain OUTPUT (policy ACCEPT) target prot opt source destination [root@router]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination может какието настройки надо сделать в самом xl2tpd.conf ? ЗЫ: только что обнаружил: если скачивать несколько файлов одновременно, то каждому файлу выделяется полоса примерно 512-700 кбит. получается xl2tpd режет скорость для каждого потока ???? Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now