I'm attempting to use an Ubuntu box as a VPN route(r) back to my office for my VOIP telephone. The voip phone we use, requires STUN which doesn't work unless on the same network range.
So my thinking was to create a Linux box, use OpenVPN to connect back to the office and tell the phone to use it as the default gateway.
I have the following setup so far
Linux Ubuntu; 192.168.0.100 Voip Phone: 192.168.0.101 (using 192.168.0.100 as the GW)
On the Linux box, I have OpenVPN configured and working, I can see the remote network at the office if I use the Linux server. From the VPN users, all traffic is allowed into the Corp network (only a couple of us).
I have added the following ruleset to UFW:
# NAT table rules *nat :POSTROUTING ACCEPT [0:0] # Allow forward traffic to tun0 -A POSTROUTING -s 192.168.0.0/24 -o tun0 -j MASQUERADE # Process the NAT table rules COMMIT
However, I can't send traffic from the phone up the VPN connection. Can someone advise on what I'm doing wrong, which is probably all of it I'm honest :(