This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Activating a rule from SSH or Telnet session

I got some packet filter rules that need to be activated manually by operators. I don't want to give them access to the whole WebAdmin thing so I though creating a operator users and creating some script with SUID to do the job but I need to know what command to issue or file to change to activate a specific rule from the telnet (or ssh) interface.

Thank you.

P.S.: I perfectly know that SUID script is not security at all... I agree with that.  


This thread was automatically locked due to age.
Parents
  • Dear Javier,

    It is very easy... check /etc/wfe/conf/packetdata. You can activate and deactivate any rule by changing the X or 0 at the begining of the line where the rule is shown.

    I check this change in the file is taken by the iptables daemon in a few seconds after saving the file. I just issue some iptables --list before and after the modification and looks like the change being acknowledge in a few seconds by iptables.

    Best regards,
    Me and Myself  
      
Reply
  • Dear Javier,

    It is very easy... check /etc/wfe/conf/packetdata. You can activate and deactivate any rule by changing the X or 0 at the begining of the line where the rule is shown.

    I check this change in the file is taken by the iptables daemon in a few seconds after saving the file. I just issue some iptables --list before and after the modification and looks like the change being acknowledge in a few seconds by iptables.

    Best regards,
    Me and Myself  
      
Children
No Data