i need help with this configuration.
I have a office network with ip 192.168.0.0/24 . The gateway is a firewall with IPCOP and Zerina. Its ip is : 192.168.0.252 on green . On red is 192.168.1.254 , the router is a provider telecom router all port open to the firewall , 192.168.1.1 . The public IP is 220.127.116.11 .
I set up the firewall with the how to and open vpn started. The first doubt i had is : What IP i had to set for red ? I did 192.168.1.254 or i had to set the public IP ?
By the way , i downloaded the config for the client and i cant' connect. So i cheked the client config file and i noticed that the ip it connect was 192.168.1.254 . So i changed with the office public ip and the vpn started correctly . I followed the instruction to extend the connection to other PC on server and client side. With the server all ok. I can ping any machine from the client to the server network , but i can't do the opposite. From a PC on the server side, i cant ping a PC in the client network . here the config file server. I created the directory CCD as how to . I created it in the directory where i have open vpn /var/ipcop/ovpn . the biggest doubt i have is about " create static route on the client gateway " . Thanks all for help
#OpenVPN Server conf
#DAN prepare ZERINA for listening on blue and orange
server 10.0.10.0 255.255.255.0
push "route 192.168.0.0 255.255.255.0"
keepalive 10 60
status /var/log/ovpnserver.log 30
route 192.168.2.0 255.255.255.0
push "route 192.168.2.0 255.255.255.0"