Hi to all. I'm new in this forum and first of all.. sorry for my english..
I need a little help configuring VPN to avoid an RDP connection to a MS WINDOWS SERVER.
in a few word, the connection to my openvpn server work fine. I can ping each othe machine in my lan. But i can't connect through RDP to my MS WIN server in LAN
Following my configuration file (server and client) and the output of iptables (filter - mangle - nat).
My LAN configuration:
VPN => server UBUNTU 12.04 - 2 eth (eth0 wan 130.xxx.xxx.2 - eth1 lan 100.1.1.123) iptables
DNS-DHCP-PROXY => server UBUNTU 12.04 - 2 eth (eth0 wan 94.xxx.xxx.150 - eth1 lan 100.1.1.120) iptables
MAIL SERVER => server UBUNTU 12.04 - 1 eth (eth0 lan 100.1.1.122)
MS WINDOWS SRV=> server Windows 2k3 1 lan 100.1.1.145
Thank's in advance to all
my server.conf
#SERVER CONFIG
local 130.xxx.xxx.2
port 1194
proto udp
dev tun0
ca certs/ca.crt
cert certs/server.crt
key keys/server.key
dh certs/dh1024.pem
server 100.1.3.0 255.255.255.0
tls-auth keys/tlsauth.pem
push "route 100.1.1.0 255.255.255.0"
push "redirect-gateway"
push "dhcp-option DNS 100.1.1.123"
keepalive 10 120
client-to-client
comp-lzo
max-clients 20
user nobody
group nogroup
persist-key
persist-tun
log openvpn.log
status openvpn-status.log
verb 3
mute 20
my client.ovpn
client
dev tun
proto udp
remote 130.xxx.xxx.2
resolv retry-infinite
nobind
persist-key
persist-tun
ca "ca.crt"
cert "myname.crt"
key "myname.crt"
tls-auth "tlsauth.pem"
ns-cert-type server
comp-lzo
verb3
my route-n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 130.xxx.xxx.1 0.0.0.0 UG 100 0 0 eth0
100.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
100.1.3.0 100.1.3.2 255.255.255.0 UG 0 0 0 tun0
100.1.3.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
130.xxx.xxx.0 0.0.0.0 255.255.255.252 U 0 0 0 eth0
my iptables -t filter -vnL
Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
2970 329K SRV-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
Chain FORWARD (policy ACCEPT 559 packets, 74802 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1086 packets, 208K bytes)
pkts bytes target prot opt in out source destination
Chain LOG_DROP (0 references)
pkts bytes target prot opt in out source destination
0 0 LOG tcp -- eth0 * 0.0.0.0/0 0.0.0.0/0 tcp LOG flags 0 level 4
Chain SRV-INPUT (1 references)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
2298 202K ACCEPT all -- eth1 * 0.0.0.0/0 0.0.0.0/0
27 2026 ACCEPT all -- tun0 * 0.0.0.0/0 0.0.0.0/0
631 124K ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmptype 255
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:20022 state NEW
2 140 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:1194
12 899 DROP all -- * * 0.0.0.0/0 0.0.0.0/0
my iptables -t mangle -vnl
Chain PREROUTING (policy ACCEPT 3709 packets, 419K bytes)
pkts bytes target prot opt in out source destination
2527 224K MARK all -- eth1 * 0.0.0.0/0 0.0.0.0/0 MARK set 0x9
269 47335 MARK all -- tun0 * 0.0.0.0/0 0.0.0.0/0 MARK set 0x7
0 0 MARK tcp -- * * 100.1.0.0/16 100.1.0.0/16 tcp spts:1024:65535 dpt:80 MARK set 0x8
Chain INPUT (policy ACCEPT 3048 packets, 335K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 559 packets, 74802 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 1114 packets, 212K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 1673 packets, 287K bytes)
pkts bytes target prot opt in out source destination
my iptables -t nat -vnl
Chain PREROUTING (policy ACCEPT 376 packets, 47523 bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 204 packets, 31068 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 15 packets, 906 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 15 packets, 906 bytes)
pkts bytes target prot opt in out source destination
0 0 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x9
57 6268 MASQUERADE all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x7