#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0

    OpenVPN/Samba firewall issue


    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.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,428
    Rep Power
    4539
    Where did you install a firewall, on the remote server or on your workstation? And if you stop this firewall do things start working again?
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Mar 2013
    Posts
    5
    Rep Power
    0
    Originally Posted by Doug G
    Where did you install a firewall, on the remote server or on your workstation? And if you stop this firewall do things start working again?
    The firewall was CSF (config server firewall) and it was installed on the server. I just uninstalled CSF and a DNS issue I was having is now resolved, but I can not restore connectivity to the samba share.

IMN logo majestic logo threadwatch logo seochat tools logo