Hello forum
I am trying to redirect all my clients internet traffic through the OpenVPN server, as for as I currently understand I need NAT enabled on the server in order to do this.
My current network setup is as following, OpenVPN is hosted on the 192.168.2.10 server.
I've tried the following IPFW rules
I can connect to the OpenVPN server without any problems, and also access the network/web-services on the 192.168.2.x net, But as you can have guessed, No internet access through the OpenVPN server. I have enabled gateway_enable=yes and also net.inet.ip.forwarding=1
What am I missing here? Also I would appreciate any commands and/or scripts you can provide, since I am a total beginner when it comes to IPFW commands.
Thanks.
I am trying to redirect all my clients internet traffic through the OpenVPN server, as for as I currently understand I need NAT enabled on the server in order to do this.
My current network setup is as following, OpenVPN is hosted on the 192.168.2.10 server.
Code:
Internet - Router (192.168.2.1, NAT enabled here) - Server (192.168.2.10) - OpenVPN (10.1.2.1)
I've tried the following IPFW rules
Code:
ipfw show
00100 8790 1296340 allow ip from any to any via lo0
00200 0 0 deny ip from any to 127.0.0.0/8
00300 0 0 deny ip from 127.0.0.0/8 to any
00400 10 496 nat 1 ip from 10.1.2.0/24 to any out via tun0
00500 228 15252 nat 1 ip from any to any in via tun0
65535 10459 1504821 allow ip from any to any
I can connect to the OpenVPN server without any problems, and also access the network/web-services on the 192.168.2.x net, But as you can have guessed, No internet access through the OpenVPN server. I have enabled gateway_enable=yes and also net.inet.ip.forwarding=1
What am I missing here? Also I would appreciate any commands and/or scripts you can provide, since I am a total beginner when it comes to IPFW commands.
Thanks.