The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Send new rules to iptalbes via ssh

Discussion in 'Security' started by johny28, Apr 29, 2014.

  1. johny28

    johny28 Registered

    Joined:
    Apr 29, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I am a beginner in Linux security and now I solve this problem:
    Deployed server emulates a service on port 80 in front of him is a firewall (other ip)
    that separates this server and LAN and the external network. the iptables firewall to open a port for input to server.

    I need to create a script that would be me on the basis of access to the port on the server, sent through the firewall via ssh command that adds a blocking rule in iptables.
    Alternatively, use a tool that this could do..

    Can someone please help or advice? I would be very grateful
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,706
    Likes Received:
    658
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I also recommend using a firewall management tool such as CSF. I'm not sure I understand exactly the type of rule you want to add, but CSF should make adding whatever rule it is an easier task for you.

    Thank you.
     
Loading...

Share This Page