Forums

RAzvan
RAzvan
Offline
Resolved
0 votes
I did test both of them Clearos 6 and Clearos 7 and the bug and problem it is like this :


If you will conect to VPN PPTP and try to browse some certain websites like: mail.yahoo.com , speedtest.net and a couple of more websites , The websites does not load , simply do not load at all .

I can ping and tracert successfully to the websites but the browser does not load them or produce an error. Ping work , tracert work and even trafic i see it work but page still does not load :D .


I did try to use the YAHOO DNS , the GOOGLE DNS , and even the provider DNS , still nothing work ... I did change the network ip's to many diferent configurations still nothing fixed this :)


After a couple of testing i have seen an strage setting about the mtu value wich it is 1400 ...

Does anybody have seen the bug , and did fix it somehow ? I am very shure it is something from the MTU of server side , since witout VPN work all pages and load , and wit the VPN connected does not load , but ping and tracert work ...


So the problem and bug it is the value MTU , but i do not know how to change inside the VPN this setting . It is required : Put that before exit 0 in IPUP. /etc/ppp/ip-up for me.
In Support
Friday, September 18 2015, 06:29 PM
Share this post:

Accepted Answer

Friday, September 18 2015, 06:52 PM - #Permalink
Resolved
0 votes
You could have a look at this. I'd also add the "-i ppp+" from one of the comments so it does not affect normal connections.
The reply is currently minimized Show
Responses (6)
  • Accepted Answer

    Saturday, September 19 2015, 04:04 PM - #Permalink
    Resolved
    0 votes
    The DNS issue sounds a bit like a variant of the MultiWAN DNS issue which goes as follows:
    Many ISP's only allow you to use their DNS servers from inside their network. In a MultiWAN environment if your system is configured to use the DNS servers of ISP1, but the load balancing pushes out your DNS lookup via the interface connected to ISP2, they will fail. Generally, is this situation it is better to configure your system to use public DNS servers such as GoogleDNS and OpenDNS.

    The corollary with PPTP is that your PPTP client PC may be set up to use a particular ISP's DNS servers. By default a PPTP VPN tunnels all traffic through the VPN (probably including DNS lookups) so DNS lookups could be trying to use one ISP server's DNS servers, but is routing the traffic via another ISP's network which is failing similarly to the MultiWAN case.

    There are a number of possible solutions.

    • In 6.x you can configure the DNS server in the PPTP settings. I hope you can do the same in 7.x. Here set it to something like your ClearOS LAN IP. If not, use a public DNS or the ClearOS ISP's server. I think the ClearOS LAN is preferable because then you can resolve names of other devices on your LAN.
    • Do what you have done and configure your PPTP client with a public DNS server as well. I'm not so keen on this.
    • Try the following iptables rules:
      iptables -t nat -I PREROUTING -p tcp --dport 53 ! -d your_ClearOS_LAN_IP -i ppp+ -j DNAT --to-destination your_ClearOS_LAN_IP
    • iptables -t nat -I PREROUTING -p udp --dport 53 ! -d your_ClearOS_LAN_IP -i ppp+ -j DNAT --to-destination your_ClearOS_LAN_IPThese rules redirect any DNS lookup traffic coming from a PPTP client to use your ClearOS server as a DNS server and override any DNS server they are trying to use through the VPN.
    • Turn on split tunnelling on the PPTP client - google "split tunnel pptp windows" to see how. It is a simple check-box but I can't remember which. Note with split tunnel turned on only traffic for your ClearOS LAN will go through the tunnel. All the rest will go through the PPTP client's LAN gateway.
    The reply is currently minimized Show
  • Accepted Answer

    RAzvan
    RAzvan
    Offline
    Friday, September 18 2015, 08:05 PM - #Permalink
    Resolved
    0 votes
    I did fixed like this :) ...

    are 2 things need to be done :

    1) to add 3 DNS - 2 of your local provider and another one of Google DNS : 8.8.8.8
    2) On the server side : /etc/ppp/ edit the file named : ip-up - example nano /etc/ppp/ip-up and

    You add after [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@" the /sbin/ifconfig $REALDEVICE mtu 1500 like this down below :



    ********************************************************************************

    [ -x /etc/ppp/ip-up.local ] && /etc/ppp/ip-up.local "$@"

    /sbin/ifconfig $REALDEVICE mtu 1500

    exit 0

    ********************************************************************************
    The reply is currently minimized Show
  • Accepted Answer

    RAzvan
    RAzvan
    Offline
    Friday, September 18 2015, 07:40 PM - #Permalink
    Resolved
    0 votes
    Can you test using Clearos 6? or if you wana i can give you acces to my vpn to see why and what happens .
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 18 2015, 07:34 PM - #Permalink
    Resolved
    0 votes
    I see you've accepted the answer, but I'm not sure if you found where to put the rule. Initially try it at the command line. If it works copy and paste it into the custom firewall module or /etc/clearos/firewall.d/local.

    I'm also not sure why it works without the rule on 6.x and not 7.x, but I don't have a proper 7.x environment to test.

    FWIW even Micro$oft recommend you not to to use PPTP (which they created) any more for security reasons. OpenVPN is preferable.
    The reply is currently minimized Show
  • Accepted Answer

    RAzvan
    RAzvan
    Offline
    Friday, September 18 2015, 07:22 PM - #Permalink
    Resolved
    0 votes
    I have i can not understand how wit Clear OS 5 work very well , and wit the Clear OS 6 and Clear os 7 not working :)) .


    When i am conected i can not view certain websites , witout vpn i can view them ... and wit both vpn or not i can ping , and trecert ...
    The reply is currently minimized Show
  • Accepted Answer

    RAzvan
    RAzvan
    Offline
    Friday, September 18 2015, 07:21 PM - #Permalink
    Resolved
    0 votes
    Were exactly to add that ? Can you give me a more detail to test right now . I am still trying to fix this issue but until now wit no luck :( .
    The reply is currently minimized Show
Your Reply