I've got OpenVPN and Samba both setup on a remote server. I got everything working with windows network drive mounts over the VPN. And then I installed a firewall and I can no longer connect. I've tried everything I can think of- all the rules I can find, opening the ports, etc.
Could you guys please take a look and let me know what rules I've screwed up, and what I should do to fix it? I'm using CSF- and this is the output for rules : hxxp://pastebin.com/wUtZuYcj (cant post links without more posts on this forum)
OpenVPN is running on the standard port and is setup to run with the standard 10.8.0.0 vpn. ovpn config is : hxxp://pastebin.com/aZkhSL1h (cant post links without more posts on this forum)
Samba is setup with a "clients" share that is using a user as authentication. The user is correct, and as far as I know, the ports are forwarded. I ran a quick before and after test and then a diff to find the ports that samba is using :
| 3a4 tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN |
22a24 tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN
30a33 tcp 0 0 :::139 :::* LISTEN
35a39 tcp 0 0 :::445 :::* LISTEN
At this point i'm sure its a "VPN" setup\firewall issue. Because of that, here is the section of my ifconfig that pertains to that :
| tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:10.8.0.1 P-t-P:10.8.0.2 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:14 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:404 (404.0 b) TX bytes:908 (908.0 b) |
Also, it should be noted here that when I connect to OpenVPN, it immediately works and assigns me an IP of 10.8.0.6. I can not* ping 10.8.0.1 from my windows machine (ovpn client).
Any help would be greatly appreciated! Trying my best to get this done fairly soon.