LINUX.ORG.RU

Сообщения noodlensk

 

2 независимые сетевые карты,один Squid,pptpd

Форум — Admin

Есть две сетевые карты(eth0,eth1),pptpd,прозрачный сквид.Сейчас юзеры подключаются через eth0 по ppp и получают инет который идет опять же из eth0.Надо сделать так чтоб пользователи подключающиеся через eth1 так же получали инет через eth1.То есть чтобы два канала были независимыми.В интернете есть примеры реализации объединения двух каналов с помощью iproute2,но мне нужно чтоб каналы были независимые.default gw,маска подсети,днс у обеих карт одинаковый. Есть какое то красивое решение без маркировки пакетов?

noodlensk
()

pptpd +iptables=падает eth1 через 3 часа

Форум — Admin

Стоял сервер Debian Etch со squid и раздавал интернет по одному и тому же интерфейсу eth1 (так же на нем стоит openvz и крутятся еще такие же 4 guest системы).Недавно я успешно обновил систему до Lenny и заменил squid на pptpd. Теперь каждые часа 3 или когда просто начинаешь качать через p2p eth1 просто перестает пингваться,приходится в ручную нажимать на ресет.В логах - пусто:

[code]Oct 14 19:28:55 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:29:02 lehus3 tcplog: port 2104 request from 87.117.51.71
Oct 14 19:29:05 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:29:15 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:29:17 lehus3 tcplog: port 1605 request from 92.112.0.52
Oct 14 19:29:25 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:29:32 lehus3 tcplog: port 3200 request from 188.134.9.209
Oct 14 19:29:35 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:29:45 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:29:47 lehus3 tcplog: port 59039 request from 10.168.50.120
Oct 14 19:29:55 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:30:02 lehus3 tcplog: port 59039 request from 10.168.50.120
Oct 14 19:30:05 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:30:15 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:30:17 lehus3 tcplog: port 1605 request from 92.112.0.52
Oct 14 19:30:25 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:30:29 lehus3 pppd[7512]: No response to 4 echo-requests
Oct 14 19:30:29 lehus3 pppd[7512]: Serial link appears to be disconnected.
Oct 14 19:30:29 lehus3 pppd[7512]: Connect time 251.0 minutes.
Oct 14 19:30:29 lehus3 pppd[7512]: Sent 99319398 bytes, received 85714163 bytes.
Oct 14 19:30:31 lehus3 pppd[7839]: No response to 4 echo-requests
Oct 14 19:30:31 lehus3 pppd[7839]: Serial link appears to be disconnected.
Oct 14 19:30:31 lehus3 pppd[7839]: Connect time 232.0 minutes.
Oct 14 19:30:31 lehus3 pppd[7839]: Sent 65012652 bytes, received 1805562 bytes.
Oct 14 19:30:32 lehus3 tcplog: port 2104 request from 193.108.249.216
Oct 14 19:30:32 lehus3 pppd[7512]: Connection terminated.
Oct 14 19:30:32 lehus3 pppd[7512]: Modem hangup
Oct 14 19:30:32 lehus3 pppd[7512]: Exit.
Oct 14 19:30:34 lehus3 pppd[7839]: Connection terminated.
Oct 14 19:30:34 lehus3 pppd[7839]: Modem hangup
Oct 14 19:30:34 lehus3 pppd[7839]: Exit.
Oct 14 19:30:34 lehus3 pppd[12493]: No response to 4 echo-requests
Oct 14 19:30:34 lehus3 pppd[12493]: Serial link appears to be disconnected.
Oct 14 19:30:34 lehus3 pppd[12493]: Connect time 5.5 minutes.
Oct 14 19:30:34 lehus3 pppd[12493]: Sent 804462 bytes, received 156436 bytes.
Oct 14 19:30:35 lehus3 icmplog: destination unreachable from lehus3.local
Oct 14 19:30:37 lehus3 pppd[12493]: Connection terminated.
Oct 14 19:30:37 lehus3 pppd[12493]: Modem hangup
Oct 14 19:30:37 lehus3 pppd[12493]: Exit.
Oct 14 19:30:38 lehus3 pppd[10798]: No response to 4 echo-requests
Oct 14 19:30:38 lehus3 pppd[10798]: Serial link appears to be disconnected[/code]

Вот iptables -L :

Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT gre -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:1723

Chain FORWARD (policy ACCEPT)
target prot opt source destination
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

прошу вашей помощи,т.к я уже третий день мучаюсь

noodlensk
()

RSS подписка на новые темы