<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; OpenVPN + Сжатие + 100Мбит/c]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=18487&amp;type=atom" />
	<updated>2011-12-23T03:16:35Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=18487</id>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=236642#p236642" />
			<content type="html"><![CDATA[<p>попробую для клинтов обновить openvpn может решит проблему<br />OpenVPN 2.2.2 -- released on 2011.12.22 (Change Log)<br /> Changes include:<br />Pkcs11 support built into the Windows version<br />Fixed a bug in the Windows TAP-driver</p>]]></content>
			<author>
				<name><![CDATA[sagvir]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15826</uri>
			</author>
			<updated>2011-12-23T03:16:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=236642#p236642</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=234572#p234572" />
			<content type="html"><![CDATA[<p>Нет такого файла у меня нет,таким способом удалить не удалось</p>]]></content>
			<author>
				<name><![CDATA[sagvir]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15826</uri>
			</author>
			<updated>2011-12-14T03:46:50Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=234572#p234572</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=232744#p232744" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sagvir пишет:</cite><blockquote><p>А как tap0 интерфейс удалить не подскажете?</p></blockquote></div><p>/usr/bin/tunctl&nbsp; -h</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2011-12-08T14:30:47Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=232744#p232744</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=232378#p232378" />
			<content type="html"><![CDATA[<p>Спасибо за наводку) ntp-server я так то установил время синхронизируеться точно, а вот с интерфесом tap0 действительно беда<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>tap0&nbsp; &nbsp; &nbsp; Link encap:Ethernet&nbsp; HWaddr 92:fc:06:9e:f2:e9&nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet addr:10.10.10.1&nbsp; Bcast:10.10.10.255&nbsp; Mask:255.255.255.0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; inet6 addr: fe80::90fc:6ff:fe9e:f2e9/64 Scope:Link<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; UP BROADCAST RUNNING MULTICAST&nbsp; MTU:1500&nbsp; Metric:1<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX packets:167680226 errors:0 dropped:0 overruns:0 frame:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; TX packets:214449043 errors:0 dropped:83018 overruns:0 carrier:0<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; collisions:0 txqueuelen:100 <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; RX bytes:51940189785 (48.3 GiB)&nbsp; TX bytes:244745035057 (227.9 GiB</p></div></div><p>cat /proc/net/dev<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>Inter-|&nbsp; &nbsp;Receive&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |&nbsp; Transmit<br /> face |bytes&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; packets &nbsp; &nbsp;&nbsp; errs drop fifo frame compressed &nbsp; &nbsp; multicast|bytes&nbsp; &nbsp; &nbsp; &nbsp; packets &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;errs drop fifo colls carrier compressed<br />&nbsp; &nbsp; lo:5855569357 &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;18565441&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 5855569357 &nbsp; &nbsp; 18565441&nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br />&nbsp; eth0:111585593892 &nbsp; &nbsp; 239692431&nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 299436505922 &nbsp; &nbsp; 386570604&nbsp; &nbsp; &nbsp;&nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br />&nbsp; eth1:246399568158 &nbsp; &nbsp; 224782478&nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;1 &nbsp; &nbsp; 54305989616 &nbsp; &nbsp; 172380986&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br />&nbsp; eth2:1515066687 &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;17305959&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;50413 &nbsp; &nbsp; 46380203419 &nbsp; &nbsp; 32237817&nbsp; &nbsp; &nbsp;&nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0<br />&nbsp; tap0:51971843446 &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 167796267&nbsp; &nbsp;0&nbsp; &nbsp; 0&nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;0 &nbsp; &nbsp; 244886445301 &nbsp; &nbsp; 214579979&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; 0 83018 0&nbsp; &nbsp; &nbsp;0&nbsp; &nbsp; &nbsp; &nbsp; 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 0</p></div></div><p>А как tap0 интерфейс удалить не подскажете? разве что openvpn отрубить, но при старте то он сам создаст, <br />ll /dev/net<br />итого 0<br />crw-rw-rw- 1 root root 10, 200 Ноя 20 18:49 tun<br />разве что этими командами?<br />sudo mkdir /dev/net<br /> sudo mknod /dev/net/tun c 10 200, но у меня&nbsp; и так с такими параметрами 10 200</p>]]></content>
			<author>
				<name><![CDATA[sagvir]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15826</uri>
			</author>
			<updated>2011-12-08T03:57:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=232378#p232378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=232278#p232278" />
			<content type="html"><![CDATA[<p><a href="http://www.adminsehow.com/2009/08/openvpn-read-udpv4-ehostunreach-no-route-to-host-code113/">http://www.adminsehow.com/2009/08/openv … t-code113/</a>&nbsp; <br />Гугл не повредит в целом.</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2011-12-07T17:13:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=232278#p232278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=232072#p232072" />
			<content type="html"><![CDATA[<p>openvpn.conf</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#local 192.168.2.254<br />port 1194<br />proto udp<br />#dev tun<br />dev tap<br />;dev-node tap0<br />ca /etc/openvpn/ca.crt<br />cert /etc/openvpn/mailserver.imsp.crt<br />key /etc/openvpn/mailserver.imsp.key # This file should be kept secret<br />dh /etc/openvpn/dh1024.pem<br />server 10.10.10.0 255.255.255.0 # vpn subnet<br />ifconfig-pool-persist /etc/openvpn/ipp.txt<br />push &quot;route-gateway 192.168.2.254 255.255.255.0&quot; # work subnet<br />#push &quot;route 0.0.0.0 255.255.255.0&quot; # work subnet<br />push &quot;dhcp-option DNS 192.168.2.254&quot;<br />#push &quot;redirect-gateway def1&quot; # старый маршрут останеться<br />push &quot;redirect-gateway&quot; # старый маршрут удалиться<br />;duplicate-cn<br />#keepalive 10 120<br />#;cipher BF-CBC # Blowfish (default)<br />#;cipher AES-128-CBC # AES<br />#;cipher DES-EDE3-CBC # Triple-DES<br />comp-lzo<br />max-clients 220<br />user nobody<br />group nogroup<br />persist-key<br />persist-tun<br />log /var/log/openvpn.log #log-append log файл будет дополняться<br />status /var/log/openvpn-status.log #обновляеться каждую минуту о подкл пользователей<br />verb 5<br />mute 20<br />client-to-client<br />client-config-dir /etc/openvpn/2.0/keys</p></div></div><p>iptables</p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>#!/bin/bash<br /># Тут в принципе может и не надо этого всего но не помеха вдруг какой модуль не подгружен или форвардинг не включен<br />echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_forward<br />echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_dynaddr<br />/sbin/modprobe ip_tables<br />/sbin/modprobe ip_conntrack<br />/sbin/modprobe iptable_filter<br />/sbin/modprobe iptable_mangle<br />/sbin/modprobe iptable_nat<br />/sbin/modprobe ipt_LOG<br />/sbin/modprobe ipt_limit<br />/sbin/modprobe ipt_state<br />/sbin/modprobe ip_nat_ftp<br />/sbin/modprobe ip_conntrack_ftp</p><br /><p># Объявление переменных<br />export IPT=&quot;iptables&quot;</p><p># localhost <br />export LO=&quot;lo&quot;<br />LO_IP=&quot;127.0.0.1&quot;</p><p># Интерфейс который смотрит в интернет<br />export WAN=eth1<br />WAN_IP1=&quot;yyy.yyy.yyy.yy&quot; #почта<br />WAN_IP2=&quot;xxx.xxx.xxx.xx&quot; #интернет<br /># Локальная сеть 1 eth0<br />export LAN1=eth0<br />export LAN_IP_RANGE1=192.168.2.0/24<br />LAN_IP1=&quot;192.168.2.254&quot;<br /># Локальная сеть(бухгалтерия) 2 eth2<br />export LAN2=eth2<br />export LAN_IP_RANGE2=192.168.10.0/24<br />LAN_IP2=&quot;192.168.10.254&quot;<br /># openVPN сеть - через него идет интернет<br />export VPN=tun0<br />export VPN_IP_RANGE=10.10.10.0/24</p><p># допольнительное оборудование скажем роутер<br />export IP_ROUTER=&quot;192.168.2.11&quot;<br /># Очистка всех цепочек iptables<br />$IPT -F<br />$IPT -F -t nat<br />$IPT -F -t mangle<br />$IPT -X<br />$IPT -t nat -X<br />$IPT -t mangle -X</p><p># Закрываем изначально ВСЁ (т.е. изначально все что не разрешено - запрещено):<br />$IPT -P INPUT DROP<br />$IPT -P OUTPUT DROP<br />$IPT -P FORWARD DROP</p><p># разрешаем локальный траффик для loopback и внутренней сети<br />$IPT -A INPUT -i $LO -j ACCEPT<br />$IPT -A INPUT -i $LAN1 -j ACCEPT<br />$IPT -A INPUT -i $LAN2 -j ACCEPT<br />$IPT -A OUTPUT -o $LO -j ACCEPT<br />$IPT -A OUTPUT -o $LAN1 -j ACCEPT<br />$IPT -A OUTPUT -o $LAN2 -j ACCEPT<br />$IPT -A OUTPUT -p ALL -s $WAN_IP1 -j ACCEPT<br />$IPT -A OUTPUT -p ALL -s $WAN_IP2 -j ACCEPT</p><p>#$IPT -A INPUT -p ALL -i $WAN -s $LAN_IP_RANGE1 -j ACCEPT<br />#$IPT -A INPUT -p ALL -i $LAN2 -s $LAN_IP_RANGE2 -j ACCEPT<br />$IPT -A INPUT -p ALL -i $LO -s $LO_IP -j ACCEPT<br />#$IPT -A INPUT -p ALL -i $LO -s $LAN_IP1 -j ACCEPT<br />#$IPT -A INPUT -p ALL -i $LO -s $LAN_IP2 -j ACCEPT<br />#$IPT -A INPUT -p ALL -i $LO -s $WAN_IP -j ACCEPT<br /># Состояние ESTABLISHED говорит о том, что это не первый пакет в соединении.<br /># Пропускать все уже инициированные соединения, а также дочерние от них<br />$IPT -A INPUT -p all -m state --state ESTABLISHED,RELATED -j ACCEPT<br /># Пропускать новые, а так же уже инициированные и их дочерние соединения<br />$IPT -A OUTPUT -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT<br /># Разрешить форвардинг для новых, а так же уже инициированных и их дочерних соединений<br />$IPT -A FORWARD -p all -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT</p><p># Включаем фрагментацию пакетов. Необходимо из за разных значений MTU<br />$IPT -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu</p><p># Отбрасывать все пакеты, которые не могут быть идентифицированы и поэтому не могут иметь определенного статуса.<br />$IPT -A INPUT -m state --state INVALID -j DROP<br />$IPT -A FORWARD -m state --state INVALID -j DROP</p><p># Приводит к связыванию системных ресурсов, так что реальный обмен данными становится не возможным.<br />$IPT -A INPUT -p tcp ! --syn -m state --state NEW -j DROP<br />$IPT -A OUTPUT -p tcp ! --syn -m state --state NEW -j DROP</p><p># Разрешаем доступ из внутренней сети наружу<br />$IPT -A FORWARD -i $LAN1 -o $WAN -j ACCEPT<br />$IPT -A FORWARD -i $LAN2 -o $WAN -j ACCEPT</p><p># Запрещаем доступ снаружи во внутреннюю сеть<br />$IPT -A FORWARD -i $WAN -o $LAN1 -j REJECT<br />$IPT -A FORWARD -i $WAN -o $LAN2 -j REJECT</p><p># Маскарадинг для openVPN сети чтобы весь трафик шел через впн сеть<br />$IPT -t nat -A POSTROUTING -o $WAN -s $VPN_IP_RANGE -j MASQUERADE<br />#$IPT -t nat -A POSTROUTING -o $WAN -s $LAN_IP_RANGE1 -j MASQUERADE<br /># Маскарадинг для бухгалтерии <br />$IPT -t nat -A POSTROUTING -o $WAN -s $LAN_IP_RANGE2 -j MASQUERADE</p><p># Маскарадинг для роутера<br />#$IPT -t nat -A POSTROUTING -o $WAN -s $IP_ROUTER -j MASQUERADE<br />#iptables -t nat -A POSTROUTING -s 192.168.20.11 -j MASQUERADE -o eth1</p><p>#&nbsp; для почтовых портов<br />$IPT -t nat -A POSTROUTING -p tcp -o $WAN --dport 110 -j SNAT --to-source $WAN_IP1<br />$IPT -t nat -A POSTROUTING -p tcp -o $WAN --dport 25 -j SNAT --to-source $WAN_IP1<br />$IPT -t nat -A POSTROUTING -p tcp -o $WAN --dport 143 -j SNAT --to-source $WAN_IP1<br />$IPT -t nat -A POSTROUTING -p tcp -o $WAN -j SNAT --to-source $WAN_IP2</p><p># Далее дано как пример открытие портов извне:<br /># **********************************************************************<br /># Открываем порт для ssh<br />$IPT -A INPUT -i $WAN -p tcp --dport 22 -j ACCEPT<br />$IPT -A OUTPUT -i $WAN -p tcp --dport 22 -j ACCEPT<br /># Разрешаем dns серверу<br />$IPT -A INPUT -i $WAN -p udp --sport 53 -j ACCEPT<br />$IPT -A OUTPUT -i $WAN -p udp --sport 53 -j ACCEPT</p><p># Открытие портов для торрентов (такие же указать в torrent-клиенте)<br />$IPT -A INPUT -i $WAN -p tcp -m multiport --ports 50100:51100 -j ACCEPT<br />$IPT -A INPUT -i $WAN -p tcp -m multiport --ports 50100:51100 -j ACCEPT</p><p># Открытие 443 порта<br />$IPT -A INPUT -p tcp --dport 443 -j ACCEPT</p><p># Открытие порта udp 1194 для openVPN<br />$IPT -A INPUT -p tcp --dport 1194 -j ACCEPT<br />$IPT -A INPUT -p udp --dport 1194 -j ACCEPT<br /># Открываем 80 порт для веб сайтов<br />$IPT -A INPUT -i $WAN -p all --dport 80 -j ACCEPT<br />$IPT -A INPUT -p tcp --dport 80 -j ACCEPT<br />$IPT -A OUTPUT -p tcp --sport 80 -j ACCEPT<br />$IPT -A INPUT -p udp --dport 80&nbsp; -j ACCEPT<br />$IPT -A OUTPUT -p udp --sport 80 -j ACCEPT</p><p># Открытие порта 25, 143 для smtp imap<br />$IPT -A INPUT -i $WAN -p all --dport 25 -j ACCEPT<br />$IPT -A OUTPUT -i $WAN -p all --dport 25 -j ACCEPT<br />$IPT -A INPUT -p tcp --dport 25 -j ACCEPT<br />$IPT -A OUTPUT -p tcp --sport 25 -j ACCEPT<br />$IPT -A INPUT -i $WAN -p all --dport 143 -j ACCEPT<br />$IPT -A OUTPUT -i $WAN -p all --dport 143 -j ACCEPT<br />$IPT -A INPUT -p tcp --dport 143 -j ACCEPT<br />$IPT -A OUTPUT -p tcp --sport 143 -j ACCEPT<br />$IPT -A INPUT -i $WAN -p all --dport 110 -j ACCEPT<br />$IPT -A OUTPUT -i $WAN -p all --dport 110 -j ACCEPT<br />$IPT -A INPUT -p tcp --dport 110 -j ACCEPT<br />$IPT -A OUTPUT -p tcp --sport 110 -j ACCEPT<br />$IPT -A FORWARD -p TCP -s 0/0 --dport 25 -j allowed<br />$IPT -A FORWARD -p TCP -s 0/0 --sport 25 -j allowed<br />$IPT -A FORWARD -p TCP -s 0/0 --dport 110 -j allowed<br />$IPT -A FORWARD -p TCP -s 0/0 --sport 110 -j allowed<br />$IPT -A FORWARD -p TCP -s 0/0 --dport 143 -j allowed<br />$IPT -A FORWARD -p TCP -s 0/0 --sport 143 -j allowed<br />#$IPTABLES -A OUTPUT -p tcp -j bad_tcp_packets</p><br /><p>$IPT -A OUTPUT -p ALL -s $LO_IP -j ACCEPT<br />$IPT -A OUTPUT -p ALL -s $WAN -j ACCEPT<br />$IPT -A OUTPUT -p ALL -s $LAN1 -j ACCEPT<br />$IPT -A OUTPUT -p ALL -s $LAN2 -j ACCEPT<br />$IPT -A OUTPUT -p ALL -s $VPN -j ACCEPT</p><br /><p># Открытие портов для игровых серверов<br />#$IPT -A INPUT -i $WAN -p tcp --dport 27010:27030 -j ACCEPT<br />#$IPT -A INPUT -i $WAN -p udp --dport 27010:27030 -j ACCEPT<br /># **********************************************************************<br /># Вывод информации о состоянии<br />$IPT -L</p></div></div><p>syslog<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>Dec&nbsp; 5 18:44:58 mailserver dhcpd: DHCPACK to 192.168.2.178 (00:26:9e:34:5c:54) via eth0<br />Dec&nbsp; 5 18:45:07 mailserver postfix/anvil[6746]: statistics: max connection rate 1/60s for (smtp:85.26.186.39) at Dec&nbsp; 5 18:39:13<br />Dec&nbsp; 5 18:45:07 mailserver postfix/anvil[6746]: statistics: max connection count 1 for (smtp:85.26.186.39) at Dec&nbsp; 5 18:39:13<br />Dec&nbsp; 5 18:45:07 mailserver postfix/anvil[6746]: statistics: max cache size 1 at Dec&nbsp; 5 18:39:13<br />Dec&nbsp; 5 18:45:16 mailserver named[2494]: error (network unreachable) resolving &#039;ns2.linkin-park.biz/AAAA/IN&#039;: 2001:7fd::1#53<br />Dec&nbsp; 5 18:45:16 mailserver dhcpd: DHCPRELEASE of 192.168.2.40 from f0:62:81:1d:ef:e0 via eth0 (not found)<br />Dec&nbsp; 5 18:45:17 mailserver dhcpd: DHCPREQUEST for 192.168.2.40 from f0:62:81:1d:ef:e0 via eth0<br />Dec&nbsp; 5 18:45:17 mailserver dhcpd: DHCPACK on 192.168.2.40 to f0:62:81:1d:ef:e0 via eth0<br />Dec&nbsp; 5 18:45:38 mailserver dhcpd: DHCPINFORM from 192.168.2.207 via eth0<br />Dec&nbsp; 5 18:45:38 mailserver dhcpd: DHCPACK to 192.168.2.207 (00:17:31:7f:b2:65) via eth0<br />Dec&nbsp; 5 18:46:00 mailserver dhcpd: DHCPINFORM from 192.168.2.178 via eth0<br />Dec&nbsp; 5 18:46:00 mailserver dhcpd: DHCPACK to 192.168.2.178 (00:26:9e:34:5c:54) via eth0<br />Dec&nbsp; 5 18:46:12 mailserver dhcpd: DHCPINFORM from 192.168.2.196 via eth0</p></div></div><p>о с впн сегодня по логам сурезно)<br />less /var/log/openvpn.log<br />&nbsp; <br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p>ed Dec&nbsp; 7 10:38:30 2011 us=194554 myrzinova.imsp/192.168.2.240:1194 Data Channel Decrypt: Using 160 bit message hash &#039;SHA1&#039; for HMAC authentication<br />Wed Dec&nbsp; 7 10:38:30 2011 us=194619 myrzinova.imsp/192.168.2.240:1194 TLS: move_session: dest=TM_ACTIVE src=TM_UNTRUSTED reinit_src=1<br />Wed Dec&nbsp; 7 10:38:30 2011 us=194882 myrzinova.imsp/192.168.2.240:1194 TLS: tls_multi_process: untrusted session promoted to semi-trusted<br />Wed Dec&nbsp; 7 10:38:30 2011 us=216573 myrzinova.imsp/192.168.2.240:1194 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA<br />Wed Dec&nbsp; 7 10:38:30 2011 us=293116 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:31 2011 us=201627 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:31 2011 us=675938 myrzinova.imsp/192.168.2.240:1194 PUSH: Received control message: &#039;PUSH_REQUEST&#039;<br />Wed Dec&nbsp; 7 10:38:31 2011 us=676069 myrzinova.imsp/192.168.2.240:1194 SENT CONTROL [myrzinova.imsp]: &#039;PUSH_REPLY,route-gateway 192.168.2.254 255.255.255.0,dhcp-option DNS 192.168.2.254,redirect-gateway,route-gateway 10.10.10.1,ifconfig 10.10.10.9 255.255.255.0&#039; (status=1)<br />Wed Dec&nbsp; 7 10:38:34 2011 us=662017 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:34 2011 us=665995 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:38 2011 us=73958 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:38 2011 us=77942 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:41 2011 us=769978 nyriclamov.imsp/192.168.2.138:1194 write UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:41 2011 us=773950 user15.imsp/192.168.2.178:1194 write UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:44 2011 us=773917 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:44 2011 us=781970 nagimov.imsp/192.168.2.187:1194 write UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:47 2011 us=777882 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:47 2011 us=785970 d12art.imsp/192.168.2.111:1194 write UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:50 2011 us=886140 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:54 2011 us=86037 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:54 2011 us=89931 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:38:57 2011 us=213998 afanaceva.imsp/192.168.2.195:1194 write UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:39:00 2011 us=217800 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)<br />Wed Dec&nbsp; 7 10:39:00 2011 us=221779 read UDPv4 [EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH|EHOSTUNREACH]: No route to host (code=113)</p></div></div>]]></content>
			<author>
				<name><![CDATA[sagvir]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15826</uri>
			</author>
			<updated>2011-12-07T08:08:54Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=232072#p232072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=232042#p232042" />
			<content type="html"><![CDATA[<p><strong>sagvir</strong>,&nbsp; надо смотреть конфиги и логи.</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2011-12-07T06:27:00Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=232042#p232042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=232029#p232029" />
			<content type="html"><![CDATA[<p>Ребята я использую связку ddns+openvpn в организации с порядка 90 компов и переодически разрывы потери, глюки идут, может ли это быть свяанно с сжатием?</p>]]></content>
			<author>
				<name><![CDATA[sagvir]]></name>
				<uri>https://linuxforum.ru/profile.php?id=15826</uri>
			</author>
			<updated>2011-12-07T05:27:02Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=232029#p232029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=231922#p231922" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>elve пишет:</cite><blockquote><p>Так это конфиг. А документация? =).</p></blockquote></div><p>Настоящий инженер читает документацию в последнюю очередь. И то, если что-то не заработало. :-)<br />Ну и еще - в копилку аргументов (пока не знаю только за или против): Я пользую роутеры DLINK-804, так про их скорострельность в режиме организации VPN на IPSec есть такие сведения:<br />1. При включенном шифровании - 4 мегабита в секунду;<br />2. При отключенном (AH-only) - 6 мегабит.</p><p>Конечно, процессор в&nbsp; компьютере пошустрее будет, чем в роутере, но все равно, не на пару же порядков, чтобы&nbsp; сотню мегабит в IPSec&#039;e вытянуть. Я так думаю...</p>]]></content>
			<author>
				<name><![CDATA[Cruiser78]]></name>
				<uri>https://linuxforum.ru/profile.php?id=631</uri>
			</author>
			<updated>2011-12-06T18:13:07Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=231922#p231922</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=231736#p231736" />
			<content type="html"><![CDATA[<p>Так это конфиг. А документация? =).</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-12-06T07:54:15Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=231736#p231736</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=231598#p231598" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>elve пишет:</cite><blockquote><p>оно?</p></blockquote></div><p>Я думал эту мысль. Но - текст server.conf:<br /></p><div class="codebox"><pre><code># Select a cryptographic cipher.
# This config item must be copied to
# the client config file as well.
;cipher BF-CBC        # Blowfish (default)
;cipher AES-128-CBC   # AES
;cipher DES-EDE3-CBC  # Triple-DES</code></pre></div><p>как то про &quot;none&quot; умалчивает. И, более того, из него я делаю вывод, что если неправильно напишу желаемый метод, или метод отсутствующий в openSSL, то выберется значение дефолтное (как программист - я бы именно так и закодировал). А это - Blowfish.&nbsp; Хотя, может быть я и не прав.</p>]]></content>
			<author>
				<name><![CDATA[Cruiser78]]></name>
				<uri>https://linuxforum.ru/profile.php?id=631</uri>
			</author>
			<updated>2011-12-05T17:28:53Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=231598#p231598</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=231466#p231466" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>cipher none</code></pre></div><p>оно?</p>]]></content>
			<author>
				<name><![CDATA[elve]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1172</uri>
			</author>
			<updated>2011-12-05T14:06:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=231466#p231466</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=230710#p230710" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Macumazan пишет:</cite><blockquote><p>Можно попробовать пересобрать.&nbsp; В сборочных скриптах есть параметры --disable-crypto --disable-ssl .</p></blockquote></div><p>Не вариант. Так как по этому openVPN у меня к терминальному серверу достаточно много виндовых ремутных юзерей подключено. И если у меня будет --disable crypto, а на том конце криптография будет требоваться, то... Ну, думаю, что ничего хорошего не получится... Наверняка есть какой-то параметр в конфиге, который позволяет не использовать шифрование. Но я этого параметра не знаю.</p>]]></content>
			<author>
				<name><![CDATA[Cruiser78]]></name>
				<uri>https://linuxforum.ru/profile.php?id=631</uri>
			</author>
			<updated>2011-12-03T15:51:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=230710#p230710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=230661#p230661" />
			<content type="html"><![CDATA[<p>Можно попробовать пересобрать.&nbsp; В сборочных скриптах есть параметры --disable-crypto --disable-ssl .</p>]]></content>
			<author>
				<name><![CDATA[Macumazan]]></name>
				<uri>https://linuxforum.ru/profile.php?id=952</uri>
			</author>
			<updated>2011-12-03T12:07:32Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=230661#p230661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: OpenVPN + Сжатие + 100Мбит/c]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=230635#p230635" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Macumazan пишет:</cite><blockquote><p><strong>Cruiser78</strong>,&nbsp; попробуй шифрованием поиграть: RC2, RC5, Blowfish&nbsp; весьма производительны.</p></blockquote></div><p>Я бы его вообще отключил. Но вот как - не знаю.&nbsp; В конфиге можно выбрать из нескольких методов один. А если не выбрать, то будет дефолтный Blowfish. У меня, кстати, так и не выбрано. То есть работает по дефолту. <br />И сколько по сравнению с ним возьмет на себя компрессия - непонятно. Хотя, алгорим LZ-компрессии очень экономичный в плане скорострельности. Я больше грешу на тормоза от криптографии, чем на компрессию.</p>]]></content>
			<author>
				<name><![CDATA[Cruiser78]]></name>
				<uri>https://linuxforum.ru/profile.php?id=631</uri>
			</author>
			<updated>2011-12-03T09:47:04Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=230635#p230635</id>
		</entry>
</feed>
