Hello,
my linux server configuration looks like:
br0 Link encap:Ethernet HWaddr 00:22:4d:b6:08:5d
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::222:4dff:feb6:85d/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3574161 errors:0 dropped:0 overruns:0 frame:0
TX packets:2478130 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:387580401 (387.5 MB) TX bytes:900531451 (900.5 MB)
eth0 Link encap:Ethernet HWaddr 00:22:4d:b6:08:5d
inet6 addr: fe80::222:4dff:feb6:85d/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:3655897 errors:0 dropped:599 overruns:0 frame:0
TX packets:2639050 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:445760349 (445.7 MB) TX bytes:911139100 (911.1 MB)
Interrupt:16 Memory:d0020000-d0040000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3624588 errors:0 dropped:0 overruns:0 frame:0
TX packets:3624588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1092255079 (1.0 GB) TX bytes:1092255079 (1.0 GB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.9.0.1 P-t-P:10.9.0.2 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:4117 errors:0 dropped:0 overruns:0 frame:0
TX packets:875 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:262160 (262.1 KB) TX bytes:1008464 (1.0 MB)
And OpenVPN files - server.conf
port 1194 #- port
proto tcp #- protocol
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt
key /etc/openvpn/easy-rsa/2.0/keys/server.key
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem
ifconfig-pool-persist ipp.txt
keepalive 10 120
ping-restart 0
duplicate-cn
server 10.9.0.0 255.255.255.0
push "route 192.168.0.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
comp-lzo
persist-key
persist-tun
status 1194.log
verb 3
the client configuration file, looks like:
client
dev tun
proto tcp
remote <remote_machine> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3
On the remote server there is a tomcat server that I want to reach from the office.
From the tablet where OpenVPN is installed I try to reach it from
http://192.168.0.2:9800
and it works fine, I see the tomcat page but if I run the app from tablet that is trying to invoke the same command, it does not work.
For testing it from the tablet I'm trying to reach
http://10.9.0.2:9800
and does not work.
Also, from the tablet connected trough OpenVPN I'm not able to reach internet
The ip foward on the remote server is enabled.
cat /proc/sys/net/ipv4/ip_forward
1
On the remote server, there's no iptables rules.
The goal is to having app working (first) and browse internet (second)
Could someone please help me with this configuration?
Thank you.
Best Regards.