Thanks for reply!
Yes, I get the CN=ns1 response to the line of code you gave me. I know now about the proper full path to the ccd/ns1 file, as should have really been stated in the openvpn documentation. I figured it out the hard way, a few days ago.
Now the client gets the desired 10.55.98.1 IP, but I can't see any refference in the log about pulling the iroute commands from the server. I use verb 4. Should there be any sign of those 2 extra routes somewhere?
I did some further testing and I was able to ping the target subnets from the server machine, verified that traceroute finds it's way to them via 10.55.98.1 but any http connection to the target IPs fails.
On the server I have only the main routing table:
root@server:~# ip r list
10.0.0.1 dev ppp0 proto kernel scope link src 188.26.x.y
10.55.99.2 dev tun0 proto kernel scope link src 10.55.99.1
10.55.98.0/30 via 10.55.99.2 dev tun0
78.128.63.0/27 via 10.55.99.2 dev tun0
83.149.86.128/27 via 10.55.99.2 dev tun0
10.55.99.0/24 via 10.55.99.2 dev tun0
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
127.0.0.0/8 dev lo scope link
default dev ppp0 scope link
The server has a static IP of 188.26.x.y and the firewall contains:
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o tun0 -j SNAT --to-source 10.55.99.1
The client has the main routing table like this:
root@client:/# ip r list
10.0.0.1 dev ppp0 proto kernel scope link src 188.26.z.w
10.55.99.1 dev tun0 proto kernel scope link src 10.55.98.1
i.s.p.2/24 dev eth2 proto kernel scope link src i.s.p.2
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
127.0.0.0/8 dev lo scope link
default dev ppp0 scope link
and a second table BTC:
root@client:/# ip r list table BTC
10.0.0.1 dev ppp0 proto kernel scope link src 188.26.z.w
10.55.99.1 dev tun0 proto kernel scope link src 10.55.98.1
i.s.p.2gw/24 dev eth2 proto kernel scope link src i.s.p.2
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.1
127.0.0.0/8 dev lo scope link
default via i.s.p.2gw dev eth2 src i.s.p.2
The client has the folowing routing rules:
root@retea:/# ip ru list
0: from all lookup local
32760: from i.s.p.2 lookup BTC
32762: from all to 83.149.86.128/27 lookup BTC
32763: from all to 78.128.63.0/27 lookup BTC
32766: from all lookup main
32767: from all lookup default
It has a static IP of 188.26.z.w and it's firewall contains:
iptables -A INPUT -i tun0 -j ACCEPT
iptables -A FORWARD -p ALL -i tun0 -s 10.55.98.0/23 -j ACCEPT
iptables -A FORWARD -i tun+ -j ACCEPT
iptables -A OUTPUT -o tun0 -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.55.98.0/23 -o eth2 -j SNAT --to-source i.s.p.2
Where did I go wrong? :roll: