• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

OpenVPN - Internet won't work

Scheduled Pinned Locked Moved OpenVPN
17 Posts 5 Posters 8.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    Cry Havok
    last edited by Aug 29, 2010, 8:48 PM

    Did you remember to configure the pfSense server to push the default gateway, by adding push "redirect-gateway" to the Custom Options field?

    1 Reply Last reply Reply Quote 0
    • E
      EkkO
      last edited by Aug 29, 2010, 8:55 PM

      @Cry:

      Did you remember to configure the pfSense server to push the default gateway, by adding push "redirect-gateway" to the Custom Options field?

      My Custom Options right now

      push "route 192.168.1.0 255.255.255.0";management 127.0.0.1 443;
      push "redirect-gateway"

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by Aug 30, 2010, 12:09 AM

        Not related to your current problem, but you'll get MUCH better performance from your tunnel by using UDP.  Unless there's a specific reason you're using TCP 443, moving to a default UDP port would be a good idea.

        1 Reply Last reply Reply Quote 0
        • E
          EkkO
          last edited by Aug 30, 2010, 5:54 AM

          @submicron:

          Not related to your current problem, but you'll get MUCH better performance from your tunnel by using UDP.  Unless there's a specific reason you're using TCP 443, moving to a default UDP port would be a good idea.

          I know but all ports are blocked at my school expect 80 and 443 TCP.

          1 Reply Last reply Reply Quote 0
          • C
            Cry Havok
            last edited by Aug 30, 2010, 9:27 AM

            When you connect, what does your client log show?  What is the default gateway on the client after you connect?

            1 Reply Last reply Reply Quote 0
            • E
              EkkO
              last edited by Aug 30, 2010, 9:43 AM

              @Cry:

              When you connect, what does your client log show?  What is the default gateway on the client after you connect?

              Client log in attachement.

              openVPN_log.txt

              1 Reply Last reply Reply Quote 0
              • C
                Cry Havok
                last edited by Aug 30, 2010, 10:19 AM

                That log shows the new route being added, so how about providing the output of netstat -rn after the VPN tunnel is established to confirm that.

                Also, does your web browser have a proxy set?  If so you'll need to unset it to browse using your VPN.

                1 Reply Last reply Reply Quote 0
                • E
                  EkkO
                  last edited by Aug 30, 2010, 12:27 PM

                  @Cry:

                  That log shows the new route being added, so how about providing the output of netstat -rn after the VPN tunnel is established to confirm that.

                  Also, does your web browser have a proxy set?  If so you'll need to unset it to browse using your VPN.

                  Output for netstat -rn in attachement.

                  Thanks for helping :)

                  netstat.txt

                  1 Reply Last reply Reply Quote 0
                  • J
                    jimp Rebel Alliance Developer Netgate
                    last edited by Aug 30, 2010, 3:30 PM

                    Switch to manual outbound NAT and add a rule like the one that shows up for LAN that matches the subnet your OpenVPN clients will come from.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 0
                    • E
                      EkkO
                      last edited by Aug 30, 2010, 4:16 PM

                      @jimp:

                      Switch to manual outbound NAT and add a rule like the one that shows up for LAN that matches the subnet your OpenVPN clients will come from.

                      I already have a rule like that, Or I misunderstand you?

                      ruleOUT.jpg
                      ruleOUT.jpg_thumb

                      1 Reply Last reply Reply Quote 0
                      • J
                        jimp Rebel Alliance Developer Netgate
                        last edited by Aug 30, 2010, 4:27 PM

                        Ah, I missed that the first time.

                        What IP scheme is on the local LAN network to the client?  192.168.1.x would be very common to have overlap and cause other problems. It may not be the case this time, but it will be a problem eventually.

                        I see you have:
                        push "redirect gateway";

                        Change that to:
                        push "redirect-gateway def1";

                        See if that makes a difference.

                        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                        Need help fast? Netgate Global Support!

                        Do not Chat/PM for help!

                        1 Reply Last reply Reply Quote 0
                        • E
                          EkkO
                          last edited by Sep 1, 2010, 7:57 AM Aug 30, 2010, 5:10 PM

                          @jimp:

                          Ah, I missed that the first time.

                          What IP scheme is on the local LAN network to the client?   192.168.1.x would be very common to have overlap and cause other problems. It may not be the case this time, but it will be a problem eventually.

                          Address pool for OpenVPN Server 192.168.200.0
                          Addres pool for my local connected devices are 192.168.1.0 - 192.168.1.100

                          I see you have:
                          push "redirect gateway";

                          Change that to:
                          push "redirect-gateway def1";

                          See if that makes a difference.

                          No difference

                          Maybe i found whats wrong. When I typed in ipconfig /all in command prompt i saw that there was no default/standard gateway.

                          Beskrivning . . . . . . . . . . . : TAP-Win32 Adapter OAS
                          Fysisk adress . . . . . . . . . . : 00-FF-13-2F-C8-02
                          DHCP aktiverat. . . . . . . . . . : Ja
                          Autokonfiguration aktiverat . . . : Ja
                          Länklokal IPv6-adress . . . . . . : fe80::60c6:64fb:43b6:3e99%17(Standard)
                          IPv4-adress . . . . . . . . . . . : 192.168.200.6(Standard)
                          Nätmask . . . . . . . . . . . . . : 255.255.255.252
                          Standard-gateway. . . . . . . . . :
                          DHCP-server . . . . . . . . . . . : 192.168.200.5
                          DNS-servrar . . . . . . . . . . . : fec0:0:0:ffff::1%1

                          Still have problem :/

                          1 Reply Last reply Reply Quote 0
                          • J
                            jimp Rebel Alliance Developer Netgate
                            last edited by Sep 2, 2010, 12:26 PM

                            That doesn't really matter quite so much. The output of "route print" from a command prompt would be more informative about routes and gateways.

                            Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                            Need help fast? Netgate Global Support!

                            Do not Chat/PM for help!

                            1 Reply Last reply Reply Quote 0
                            • E
                              EkkO
                              last edited by Sep 2, 2010, 12:47 PM

                              @jimp:

                              That doesn't really matter quite so much. The output of "route print" from a command prompt would be more informative about routes and gateways.

                              Okay, Route print in a attachment.

                              routee.txt

                              1 Reply Last reply Reply Quote 0
                              • K
                                kpa
                                last edited by Sep 2, 2010, 12:48 PM

                                DNS-servrar . . . . . . . . . . . : fec0:0:0:ffff::1%1

                                Looks like your client is using an IPv6 address for DNS, that's not going to get trough the VPN tunnel since pfSense by default drops IPv6 traffic.

                                1 Reply Last reply Reply Quote 0
                                • E
                                  EkkO
                                  last edited by Sep 6, 2010, 12:01 PM Sep 2, 2010, 12:59 PM

                                  @kpa:

                                  DNS-servrar . . . . . . . . . . . : fec0:0:0:ffff::1%1

                                  Looks like your client is using an IPv6 address for DNS, that's not going to get trough the VPN tunnel since pfSense by default drops IPv6 traffic.

                                  I tried to turn it off without any difference. I did it by go to Start > Network > Interface (TAP-VPN) and properties then disable ipv6

                                  Edit: I think that all ports works fine except 80. I can play games like Trackmania over internet. But i can't play it without vpn. Somthing wrong with port 80.

                                  1 Reply Last reply Reply Quote 0
                                  11 out of 17
                                  • First post
                                    11/17
                                    Last post
                                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                    This community forum collects and processes your personal information.
                                    consent.not_received