execute iptables via web browsers?
Hi all.
I made this file to view "nat" rules, but nothing was there. How can I see the results via web?
(SSI setting was done in httpd.conf. Other environmental variables were shown)
----------------------------------------------------------------------------
-------------------------------------
<html>
<head><title> cgi test</title></head>
<body>
<h1> Server Side Includes TEST </h1>
<hr>
<p>
iptables' rule ("nat" table)<p>
<!--#exec cmd="/sbin/iptables -t nat -L"-->
</body>
</html>
Quoted 5 lines · Kim
Hi all.
I made this file to view "nat" rules, but nothing was there. How can I see the results via web?
You need to be root to view the tables, so that won't work. Though you should get an error to that effect...
-Simon
Check and see if someone has written a webmin module for iptables.
Quoted 16 lines · Simon Garner
Quoted 5 lines · Kim
Hi all.
I made this file to view "nat" rules, but nothing was there. How can I see the results via web?
You need to be root to view the tables, so that won't work. Though you should get an error to that effect...
-Simon
Quoted 4 lines · rcriggs
Check and see if someone has written a webmin module for iptables.
Simon Garner wrote:
There is a Webmin module for Shorewall and a regular frontend for iptables which seems to work fine. Like all Webmin modules it's fairly slow to refresh and can make extensive rule changes pretty tedious. I generally ssh in and edit my script directly since it's faster and I can document the rule better, but that's just my choice.
Jeff