Help needed to understand Iptables white list

VitalPBX Community Support General Discussion Help needed to understand Iptables white list

Up
0
Down
  • Post
    Gary
    Participant

    I am having trouble connecting to a server from a certain ip address, this address is entered into the firewall white list but no connections are allowed, when I check from the command line with iptables -L instead of having the ip address  I entered in the gui xxx.xxx.xxx.xxx it shows unallocated-static.rogers.com as white listed. not sure how this is changed from xxx.xxx.xxx.xxx to unallocated-static.rogers.com but is there away to prevent this or manually enter the address I wont.

    Other white list entry’s are working properly.

     

    0
Viewing 5 replies - 1 through 5 (of 5 total)
  • Replies
    Gary
    Participant

    I found using the iptables -L -n command it shows the correct ip address but I still can not connect from that address, I checked the gui Intrusion Detection ban list and it is empty.

     

    0
    oromero31
    Participant

    Could you to run wireshar to get a tracert? 

    0
    Gary
    Participant

    That will require me to be on that site to try connecting again, I can go there on Wednesday and do a capture, Thanks.

    0
    Gary
    Participant

    Is there away from the command line to check for banned ip”s

    0
    oromero31
    Participant

    Yes, you can uses this commands:

    Ver comando de fail2ban
    [root@vitalpbx ~]# man fail2ban-client

    Ver clientes baneas por ssh:
    [root@vitalpbx ~]# fail2ban-client status sshd

    Ver clientes baneas por asterisk:
    [root@vitalpbx ~]# fail2ban-client status asterisk

    Desbanear un IP
    [root@vitalpbx ~]# fail2ban-client set sshd unbanip 192.168.31.29

    Banear un IP
    [root@vitalpbx ~]# fail2ban-client set sshd banip 192.168.31.29

    Bloquear IP con el Iptables:
    iptables -I INPUT 1 -s IP -j DROP

    Desbloquear IP del Iptables:
    iptables -D INPUT -s IP -j DROP

    0
Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.