Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iptables web interface 2

Status
Not open for further replies.

mragain

IS-IT--Management
Oct 10, 2002
32
US
I'm trying to add some functionality to my Linux router so an end user could easily turn on/off tcp ports. I'm hoping there is a simple way of creating a web page with a few different buttons that once pushed would say disable routing of port 80, and then another button to turn it back on.

Any ideas?
 
I would like to use perl or php, but have no idea what kind of syntax it would take. I've looked at several books, but didn't find any references to running contained scripts on the box.
 
php has a shell_exec() function that lets you execute command or script files. You could have two php functions to add and remove rules from iptables.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top