200.1 PtP: 10.10.200.2 Mask: 255.255.255.255POINTOPOINT RUNNING NOARP MULTICAST MTU: 1500
Metric: 1packets: 9 errors: 0 dropped: 0 overruns: 0 frame: 0packets: 24 errors: 0 dropped: 0 overruns: 0 carrier: 0:0 txqueuelen: 100
???? ?????????? ?? ?????????,?????? ???? ?????? ? ???????????????? ??????. ??????? ??? ? ????????? ??????,????? ????? ????????.
????????? ? ????????? ????????. ??? ???????????????? ????? ??????????,??????? ?????????? ???? ?? ???. ?? ??????????????? office? sklad????????????? OpenVPN,??? ?? ??? ? ??? ???????.
???????? ???????????????? ???? client.conf:
tunudp195.2.240.68 # (?????? ip?????)
port 5000retry infinitekeys / ca.crtkeys / client.crtkeys / client.keyclientauth keys / ta.key 1MD5BF-CBCcert-type serverlzokeytun
#?????????? ???????? ? ???? ?? ????????. ??? ??????? ?? ????? ???
??????. ?????? ?????????
up / etc / openvpn_up.sh / var / log / openvpn / openvpn-status.log / var / log / openvpn / openvpn.log
verb 3
???????? ?????? openvpn_up.sh??? ??????????????? ?????????? ????????:
#! / bin / sh
/ sbin / route add-net 172.16.100.0 netmask 255.255.255.0 gw 10.10.200.1
tun0
?? ???? ????????? OpenVPN?????????. ???????? ??? ????? ?? office? sklad. ????? ????????? OpenVPN. ???? ?? ??????????,??????? ????.
?? ?? ???? ??? ?? ???. ?????? ??? ???? ???????? ?????????? ??????? (NAT)????? ?????? ?? ?????????? ??????,??????? ?? ?????? ????? ???? ? ???????? ? ?????????????? ???????????? ?????:
colo> iptables-t nat-A POSTROUTING-s 10.10.200.0/24-o eth1 -
j MASQUERADE
?????? 3???? «?????»???? ?????. ???????? ??????????? ? ????????? ? ????????. ?? ??????????? ? ?????????,????? ???????????? ??????? Windows XP. ????????? ? ???????????? ????? ??????????? OpenVPN? ?????????????. ????? ? ????????????? ???????? ? ????? config?????? ???? ????? ? ???????????????? ???? mag1. ????? ????? ????? ?????????.
?? ???? ????? ????????? ?????????. ???? ?????????? ????????????? ????,????? ???????????? ???????? ? ????????. ????????? ???????? ?????,????????? ?????? ?? ????? ?? ???????? ???????? TCPDUMP.
?????? ?????? ?????????????? ???????:
18:27:15.752295 IP cl230-175-182-213.cl.metrocom.40887>
195.2.240.68.ssh:. 2826496:2827944 (1448) ack 1009 win 10080
: 27:15.752347 IP 195.2.240.68.ssh> cl230-175-182-
213.cl.metrocom.40887:. ack 2783056 win 65535
256970382 2791385774, nop, nop, sack 1 {2785952:2827944}>
: 27:15.755042 IP cl230-175-182-213.cl.metrocom.40887>
195.2.240.68.ssh: 2827944:2829392 (1448) ack 1009 win 10080
<...