Forums

×

Warning

JUser: :_load: Unable to load user with ID: 194441
Medium
Offline
Resolved
0 votes
I try to access to webconfig from internet and insteed logon page i see json string {"status_code":"401.000","status_message":"Unauthorized"}
Why i see that?
Monday, October 22 2018, 11:59 AM
Share this post:
Responses (10)
  • Accepted Answer

    Tuesday, November 06 2018, 10:03 PM - #Permalink
    Resolved
    0 votes
    Please STF as I mentioned earlier?
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, November 06 2018, 06:38 PM - #Permalink
    Resolved
    0 votes
    I have broken my mind. Somebody please help me. I have whats wrong with my server?

    I have ClearOS server with two nics eno1 - 192.168.2.5 and enp2s0 - 192.168.1.1 and also i have microtik with two masqurading nics. One of microtik nic have ip address 192.168.2.1.
    In arp table on clearos server i see name "gateway" with mac of microtik 192.168.2.1 nic. If i ping "gateway" from clearos server i see replay from 192.168.2.1. But if i ping "gateway" from microtik i see nothing. How clearos decide that gateway = 192.168.2.1. I look for that everywhere i know. For example in /etc/hosts there is nothing. Why clearos think that gateway = 192.168.2.1

    I have a lot of messages like this

    Nov 6 17:28:14 gateway kernel: e1000e 0000:00:19.0 eno1: Detected Hardware Unit Hang:#012 TDH <b8>#012 TDT <ea>#012 next_to_use <ea>#012 next_to_clean <b6>#012buffer_info[next_to_clean]:#012 time_stamp <1202a38bd>#012 next_to_watch <b8>#012 jiffies <1202a62b8>#012 next_to_watch.status <0>#012MAC Status <40080043>#012PHY Status <796d>#012PHY 1000BASE-T Status <0>#012PHY Extended Status <3000>#012PCI Status <10>
    Nov 6 17:28:14 gateway kernel: e1000e 0000:00:19.0 eno1: Reset adapter unexpectedly
    Nov 6 17:28:16 gateway kernel: e1000e: eno1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None

    Nov 6 17:28:30 gateway dnsmasq-dhcp[5414]: DHCPINFORM(enp2s0) 192.168.1.148 10:78:d2:43:77:38

    What does it mean?

    Please please please help me!
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 31 2018, 09:01 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Ivan Demidov wrote:

    [quote]Nick Howitt wrote:

    On your WAN is it possible you have another machine on 192.168.2.5? Try:
    arping -I eno1 192.168.2.5


    I did it. Only one ip on servers nic.
    Hmm. You should not get any response if you run the test from 192.168.2.5. If you did get a response you have another machine on the same IP. If you ran the test from a different machine (adjusting the interface) then you should get a single device responding.[/quote]


    And i didnt get any response. But i can see that that response from 192.168.2.5.

    [root@gateway ~]# arping -I eno1 192.168.2.5
    ARPING 192.168.2.5 from 192.168.2.5 eno1
    Sent 8 probes (8 broadcast(s))
    Received 0 response(s)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 31 2018, 08:57 AM - #Permalink
    Resolved
    0 votes
    Ivan Demidov wrote:

    Nick Howitt wrote:

    On your WAN is it possible you have another machine on 192.168.2.5? Try:
    arping -I eno1 192.168.2.5


    I did it. Only one ip on servers nic.
    Hmm. You should not get any response if you run the test from 192.168.2.5. If you did get a response you have another machine on the same IP. If you ran the test from a different machine (adjusting the interface) then you should get a single device responding.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 31 2018, 08:05 AM - #Permalink
    Resolved
    0 votes
    A search of the forum should turn up the answer. A faster search would be for "ethtool tso".
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, October 31 2018, 07:03 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    On your WAN is it possible you have another machine on 192.168.2.5? Try:
    arping -I eno1 192.168.2.5


    I did it. Only one ip on servers nic.

    In server log there are such strings

    Oct 31 11:42:07 gateway arpwatch: bogon 0.0.0.0 00:e0:4c:36:a4:0e
    Oct 31 11:42:08 gateway arpwatch: bogon 0.0.0.0 00:e0:4c:36:a4:0e
    Oct 31 11:42:09 gateway arpwatch: bogon 0.0.0.0 00:e0:4c:36:a4:0e
    Oct 31 11:42:10 gateway dnsmasq-dhcp[1278]: DHCPINFORM(enp2s0) 192.168.1.232 00:e0:4c:36:a4:0e
    Oct 31 11:42:10 gateway dnsmasq-dhcp[1278]: DHCPACK(enp2s0) 192.168.1.232 00:e0:4c:36:a4:0e MS
    Oct 31 11:42:12 gateway kernel: e1000e 0000:00:19.0 eno1: Reset adapter unexpectedly
    Oct 31 11:42:14 gateway kernel: e1000e: eno1 NIC Link is Up 100 Mbps Full Duplex, Flow Control: None
    Oct 31 11:42:25 gateway systemd: Created slice User Slice of root.
    Oct 31 11:42:25 gateway systemd: Starting User Slice of root.
    Oct 31 11:42:25 gateway systemd-logind: New session 9 of user root.
    Oct 31 11:42:25 gateway systemd: Started Session 9 of user root.
    Oct 31 11:42:25 gateway systemd: Starting Session 9 of user root.
    Oct 31 11:43:37 gateway dnsmasq-dhcp[1278]: DHCPINFORM(enp2s0) 192.168.1.232 00:e0:4c:36:a4:0e
    Oct 31 11:43:37 gateway dnsmasq-dhcp[1278]: DHCPACK(enp2s0) 192.168.1.232 00:e0:4c:36:a4:0e MS


    Why is this happening?
    Oct 31 11:42:12 gateway kernel: e1000e 0000:00:19.0 eno1: Reset adapter unexpectedly

    Where i can see more information about this issue?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2018, 09:36 AM - #Permalink
    Resolved
    0 votes
    It is possible to get a webconfig debug log. To get it, issue the command:
    touch /etc/clearos/webconfig.debug
    I thisnk you then have to restart the webconfig with:
    service webconfig restart
    You should get a debug log in /var/log/webconfig. I am not sure what any of it would mean. If you can capture the errors then turn off debugging by removing /etc/clearos/webconfig.debug and restarting the webconfig, something may turn up.

    On your WAN is it possible you have another machine on 192.168.2.5? Try:
    arping -I eno1 192.168.2.5
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2018, 07:48 AM - #Permalink
    Resolved
    0 votes
    Nick Howitt wrote:

    Weird. Which mode is ClearOS in? Gateway? What is the contents of /etc/clearos/network.conf and the output of "ifconfig"? Are you running a web server on ClearOS which you've configured yourself and is perhaps intercepting the calls to Webconfig?


    WebServer is not running. I use this server only as gateway. And i have another problem on this server. I open webconfig, enter login pass and if i dont update page in 10-15 seconds, i will redirected to logon page again. Thats why i cant configure application filter. I have to click update every 10 seconds. Check two checkboxes in list, than press update, than again check next two checkboxes. It is very uncomfortable.

    [root@gateway ~]# ifconfig
    eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.2.5 netmask 255.255.255.0 broadcast 192.168.2.255
    inet6 fe80::225:90ff:fed2:d2eb prefixlen 64 scopeid 0x20<link>
    ether 00:25:90:d2:d2:eb txqueuelen 1000 (Ethernet)
    RX packets 10759714 bytes 9717312811 (9.0 GiB)
    RX errors 0 dropped 27195 overruns 0 frame 0
    TX packets 9171817 bytes 1649894023 (1.5 GiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 20 memory 0xdfa00000-dfa20000

    enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    inet 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255
    inet6 fe80::225:90ff:fed2:d2ea prefixlen 64 scopeid 0x20<link>
    ether 00:25:90:d2:d2:ea txqueuelen 1000 (Ethernet)
    RX packets 9599456 bytes 1742532769 (1.6 GiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 10746133 bytes 9589273819 (8.9 GiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
    device interrupt 16 memory 0xdf900000-df920000

    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Local Loopback)
    RX packets 122606 bytes 15945050 (15.2 MiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 122606 bytes 15945050 (15.2 MiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    [root@gateway ~]# cat /et
    cat: /et: No such file or directory
    [root@gateway ~]# cat /etc/clearos/network.conf
    # Network mode
    MODE="gateway"

    # Network interface roles
    EXTIF="eno1"
    LANIF="enp2s0"
    DMZIF=""
    HOTIF=""

    # Domain and Internet Hostname
    DEFAULT_DOMAIN="metall-service.local"
    INTERNET_HOSTNAME="gateway.metall-service.kz"

    # Extra LANS
    EXTRALANS=""
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2018, 07:19 AM - #Permalink
    Resolved
    0 votes
    Weird. Which mode is ClearOS in? Gateway? What is the contents of /etc/clearos/network.conf and the output of "ifconfig"? Are you running a web server on ClearOS which you've configured yourself and is perhaps intercepting the calls to Webconfig?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 25 2018, 06:21 AM - #Permalink
    Resolved
    0 votes
    I have three servers. And two work fine. But one of them have two nics and two IPs. One of them 192.168.1.1 and another 192.168.2.5. When i type in browser https://192.1681.1:81 all work fine and i can see webconfig logon page. But when i type in browser https://192.168.1.2.5:81 i see only json {"status_code":"401.000","status_message":"Unauthorized"}. Only one string. Why?
    The reply is currently minimized Show
Your Reply