Hi everyone,
my goal is to make a VPN server which forward all traffic from client I don't care about making a Virtual Lan between computers.
So, I installed OpenVPN on my Centos and make this config :
(I use tcp cause UDP is blocked by my ISP)
server.conf
# Serveur TCP/443
mode server
proto tcp-server
port 443
dev tun
# Cles et certificats
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
tls-auth ta.key 0
cipher AES-256-CBC
# Reseau
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
#push "dhcp-option" DNS 213.246.33.144
#push "dhcp-option DNS 4.4.4.4"
#push "dhcp-option DNS 8.8.8.8"
keepalive 10 120
# Securite
user nobody
group nobody
chroot /etc/openvpn/jail
persist-key
persist-tun
comp-lzo
# Log
verb 4
mute 20
status openvpn-status.log
log-append /var/log/openvpn.log
client-config-dir ccd
route 10.10.1.0 255.255.255.0
The /etc/openvpn/ccd/Nontenda
iroute 10.43.100.0 255.255.255.0
client.ovpn (Windows 7 64 Bits w/ OpenVPN GUI)
# Client
client
dev tun
proto tcp-client
remote server.nontenda.com 443
resolv-retry infinite
cipher AES-256-CBC
# Cles
ca ca.crt
cert Nontenda.crt
key Nontenda.key
tls-auth ta.key 1
# Securite
nobind
persist-key
persist-tun
comp-lzo
verb 3
And I get this in /var/log/openvpn.log
us=657558 Nontenda/193.55.52.2:20632 MULTI: bad source address from client [10.43.100.153], packet dropped
10.43.100.153 is my LAN IP and my WAN is 193.55.52.3
IPtables is not a problem (service iptables stop) and ip_forward has been set to 1.
Do you have any idea what make this error ?
Thank you, have a nice day,
Nontenda