Forums

Mohd azmi
Mohd azmi
Offline
Resolved
0 votes
Hi everyone,

I'm fairly new to ClearOS. I have ClearOS Business Edition 7
running on a HP server in Gateway mode.

On many occasions, I have noticed that my Internet speeds drop down substantially. I live in malaysia, and my ISP is unifi.


When I configure the modem to be in bridge mode and connect it to my , ClearOS Business Edition 7 to dail my internet
my connection speeds drop drastically to the point where it's not acceptable. I have 800mbps speed
But on my ClearOS Business Edition 7 gateway mode i only can go up to 200mbps, Yes my NIC on server support up to 1Gbps and using cat7 Cable

However, when I use it as a regular modem From ISP and connect it to my PC, there are no issues with the speed.

Obviously, something is happening when I connect it to my ClearOS Business Edition 7


Can someone please help me figure out what the could be?

As I said, I'm new to ClearOS and not very strong in the networking area in general.

Thanks in advance for your help.
In Gateway
Sunday, October 20 2019, 04:42 PM
Share this post:

Accepted Answer

Monday, October 21 2019, 07:11 AM - #Permalink
Resolved
1 votes
Check that you have version 2.7.3-1 of app-firewall:
rpm -q app-firewall
If you don't, you need to do a "yum update".

Then in /usr/clearos/apps/network/libraries/Iface.php, add a line after line 1667:
        $info['LINUX_PLUGIN'] = '/usr/lib64/pppd/2.4.5/rp-pppoe.so';
Then edit and save your ppp1 interface.

To access the command line from Windows use PuTTY. You can copy from it by selecting text and paste into it by right-clicking. For file management and a basic text editor use WinSCP.
The reply is currently minimized Show
Responses (19)
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 09:10 AM - #Permalink
    Resolved
    1 votes
    [root@gateway ~]# ls -l /etc/sysconfig/network-scripts/ifcfg-*
    -rw-r--r-- 1 root root 71 Mar 4 2019 /etc/sysconfig/network-scripts/ifcfg-eno 1
    -rw-r--r-- 1 root root 138 Mar 4 2019 /etc/sysconfig/network-scripts/ifcfg-eno 2
    -rw-r--r-- 1 root root 45 Oct 21 16:45 /etc/sysconfig/network-scripts/ifcfg-eth 0.500
    -rw-r--r-- 1 root root 254 Aug 24 2018 /etc/sysconfig/network-scripts/ifcfg-lo
    -rw-r--r-- 1 root root 368 Mar 4 2019 /etc/sysconfig/network-scripts/ifcfg-ppp 0



    ifcfg-eth0.500 file

    DEVICE=ppp0
    TYPE="xDSL"
    USERCTL="no"
    BOOTPROTO="dialup"
    NAME="DSLppp0"
    ONBOOT="yes"
    PIDFILE="/var/run/pppoe-ppp0.pid"
    FIREWALL="NONE"
    PING="."
    PPPOE_TIMEOUT="80"
    LCP_FAILURE="5"
    LCP_INTERVAL="20"
    CLAMPMSS="1412"
    CONNECT_POLL="6"
    CONNECT_TIMEOUT="80"
    DEFROUTE="yes"
    SYNCHRONOUS="no"
    ETH="eno1.500"
    PROVIDER="DSLppp0"
    PEERDNS="yes"
    USER="ISP LOGIN"
    MTU="1600"


    chap-secrets Is same as the old backup
    i think my vlan 500 is gone
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 09:47 AM - #Permalink
    Resolved
    1 votes
    I think a lot of manual tinkering has been done to get this going. Is you PPP line really connected to en01? If it is then do this:
    1 - delete the ppp0 interface
    2 - Add a VLAN interface to en01 with a VLAN tag of 500. Set it up as LAN/DHCP and save it (you can't initially set it as PPPoE).
    3 - Edit the resulting en01.500 interface and change it to External/PPPoE and input your user/pass. Save it.

    It should now connect. The problem is the current ppp0 interface is trying to attach itself to a non-existent eth0 interface. This is where I think there has been some manual fiddling in the past.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 20 2019, 07:17 PM - #Permalink
    Resolved
    0 votes
    If you are using PPPoE, you need to switch to kernel mode PPPoE. If you do not use VLAN's on your WAN you can install app-network from the updates-testing repo with:
    yum update app-network --enablerepo=clearos-updates-testing
    Then, if you edit and save your ppp0 interface it will switch to kernel mode. If you use VLAN's on any external interface, you cannot use the updated app, but I can give you a one line change to one of the programs to enable kernel mode PPPoE.
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 02:42 AM - #Permalink
    Resolved
    0 votes
    Hi
    im not quite sure how to do. Yes my Line using VLAN.500
    can you give me more info on this? thank you in advance
    Nick Howitt wrote:

    If you are using PPPoE, you need to switch to kernel mode PPPoE. If you do not use VLAN's on your WAN you can install app-network from the updates-testing repo with:
    yum update app-network --enablerepo=clearos-updates-testing
    Then, if you edit and save your ppp0 interface it will switch to kernel mode. If you use VLAN's on any external interface, you cannot use the updated app, but I can give you a one line change to one of the programs to enable kernel mode PPPoE.
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 07:32 AM - #Permalink
    Resolved
    0 votes
    Hi
    i do the almost all you ask me to do
    but on 'Then edit and save your ppp1 interface.'
    where can i find this file? sorry im quite new on this
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 07:36 AM - #Permalink
    Resolved
    0 votes
    That was supposed to read ppp0, not ppp1.

    All I mean is go to the Webconfig > Network > Settings > IP Settings. Then for any ppp interface, click on "Edit" then "Save".
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 07:40 AM - #Permalink
    Resolved
    0 votes
    Do i need to put back my Password from ISP? i cant save it. its say This field is required.
    this is password from ISP to dail internet
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 07:49 AM - #Permalink
    Resolved
    0 votes
    Yes, you have to do it every time you save it. In the future we hope to populate the password with the current password whenever you edit the interface. If you don't know it, it is in /etc/ppp/chap-secrets and is in the second quoted field.
    awk '{print $3}' /etc/ppp/chap-secrets
    will give it to you. You need the value between the quotes.
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 08:19 AM - #Permalink
    Resolved
    0 votes
    do as you say now my internet is not dailing i dont know why
    it just cant dail and no ip i restore backup also same issue please help me
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 08:26 AM - #Permalink
    Resolved
    0 votes
    Restoring a backup won't help. My connection can take a couple of minutes to reconnect but it is the same with or without kernel mode.

    You can reverse the change by undoing the edit to iface.php then editing the ppp0 interface in IP Settings. Are you sure you got the correct password?

    Note that to get vlan500 someone would have needed to do a special set up. What is the output to:
    ls -l /etc/sysconfig/network-scripts/ifcfg-*
    What is the contents of /etc/sysconfig/network-scripts/ifcfg-ppp0?
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 08:36 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Restoring a backup won't help. My connection can take a couple of minutes to reconnect but it is the same with or without kernel mode.

    You can reverse the change by undoing the edit to iface.php then editing the ppp0 interface in IP Settings. Are you sure you got the correct password?

    Note that to get vlan500 someone would have needed to do a special set up. What is the output to:
    ls -l /etc/sysconfig/network-scripts/ifcfg-*
    What is the contents of /etc/sysconfig/network-scripts/ifcfg-ppp0?



    DEVICE=ppp0
    TYPE="xDSL"
    USERCTL="no"
    BOOTPROTO="dialup"
    NAME="DSLppp0"
    ONBOOT="yes"
    PIDFILE="/var/run/pppoe-ppp0.pid"
    FIREWALL="NONE"
    PING="."
    PPPOE_TIMEOUT="80"
    LCP_FAILURE="5"
    LCP_INTERVAL="20"
    CLAMPMSS="1412"
    CONNECT_POLL="6"
    CONNECT_TIMEOUT="80"
    DEFROUTE="yes"
    SYNCHRONOUS="no"
    ETH="eth0.500"
    PROVIDER="DSLppp0"
    PEERDNS="yes"
    USER="MYISP LOGIN"
    LINUX_PLUGIN="/usr/lib64/pppd/2.4.5/rp-pppoe.so"
    MTU="1600"

    yes im sure about the password i get it from ISP
    i think my setting has changed.
    i really dont know what to do coz setting up this was my friend before
    and i dint not quite get that how to set it up back
    im screwed up!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 08:40 AM - #Permalink
    Resolved
    0 votes
    And "ls -l /etc/sysconfig/network-scripts/ifcfg-*"?
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 08:44 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    And "ls -l /etc/sysconfig/network-scripts/ifcfg-*"?



    [root@gateway ~]# DEVICE=ppp0
    [root@gateway ~]# TYPE="xDSL"
    [root@gateway ~]# USERCTL="no"
    [root@gateway ~]# BOOTPROTO="dialup"
    [root@gateway ~]# NAME="DSLppp0"
    [root@gateway ~]# ONBOOT="yes"no
    [root@gateway ~]# PIDFILE="/var/run/pppoe-ppp0.pid"
    [root@gateway ~]# FIREWALL="NONE"
    [root@gateway ~]# PING="."
    [root@gateway ~]# PPPOE_TIMEOUT="80"
    [root@gateway ~]# LCP_FAILURE="5"
    [root@gateway ~]# LCP_INTERVAL="20"
    [root@gateway ~]# CLAMPMSS="1412"
    [root@gateway ~]# CONNECT_POLL="6"
    [root@gateway ~]# CONNECT_TIMEOUT="80"
    [root@gateway ~]# DEFROUTE="yes"
    [root@gateway ~]# SYNCHRONOUS="no"
    [root@gateway ~]# ETH="eth0.500"
    [root@gateway ~]# PROVIDER="DSLppp0"
    [root@gateway ~]# PEERDNS="yes"
    [root@gateway ~]# USER="myisp login"
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 08:50 AM - #Permalink
    Resolved
    0 votes
    That is not right. It should give output like:
    [root@server ~]# ls -l /etc/sysconfig/network-scripts/ifcfg-*
    -rw-r--r-- 1 root root 43 Jun 18 12:02 /etc/sysconfig/network-scripts/ifcfg-enp2s0
    -rw-r--r-- 1 root root 119 Jun 11 18:00 /etc/sysconfig/network-scripts/ifcfg-enp5s0
    -rw-r--r-- 1 root root 254 Aug 24 2018 /etc/sysconfig/network-scripts/ifcfg-lo
    -rw-r--r-- 1 root root 421 Jun 18 12:02 /etc/sysconfig/network-scripts/ifcfg-ppp0
    You should have an ifcfg-eth0.500 file. What is in it?

    Also, from your configuration backup, can you compare your old ifcfg-ppp0 against what you have now and your old /etc/ppp/chap-secrets against what you have now.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 09:19 AM - #Permalink
    Resolved
    0 votes
    You are having problems with your copy and paste where it is going to new lines and inserting a space in the string.

    Your output looks like the contents of ifcfg-ppp0 and not ifcfg-eth0.500. Can you confirm with the command:
    cat /etc/sysconfig/network-scripts/ifcfg-eth0.500
    You would not expect to see the interface in the webconfig as it is overtaken by the ppp0 interface.

    Also are you running in a VM as you would not normally have eth named interfaces. They would normally start "en".
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 09:27 AM - #Permalink
    Resolved
    0 votes
    no its not install on VM ClearOS install on physical server
    im not very sure coz the one who setup the server has already resign from my office

    [root@gateway ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0.500
    DEVICE=eth0.500
    BOOTPROTO="none"
    ONBOOT="no"


    here is /ifcfg-eth0.500
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 09:58 AM - #Permalink
    Resolved
    0 votes
    Hi nick
    thank you for your help
    i manage to solve the issue
    and my wan speed has increase to 800mbps tho
    thank you again for your help
    if you are not here i don't know maybe i change and leave clearos
    The reply is currently minimized Show
  • Accepted Answer

    Monday, October 21 2019, 10:11 AM - #Permalink
    Resolved
    0 votes
    That is good that it is working and that you have your speed.

    Can I suggest that, if you are completely new to ClearOS, that you consider a Business Gold subscription rather than rely on a Silver one which only has forum support? You then get the benefit of e-mail and remote login support. Once you are confident with ClearOS/Linux, you can then drop back to the lower level of support.
    The reply is currently minimized Show
  • Accepted Answer

    Mohd azmi
    Mohd azmi
    Offline
    Monday, October 21 2019, 10:36 AM - #Permalink
    Resolved
    0 votes
    Hi nick
    Will consider this and let my company know it thank you
    The reply is currently minimized Show
Your Reply