Skip to contentSkip to conversation

execute iptables via web browsers?

DISCUSSION Jin Gu, Kim 4 participants 4 messages Oct 24, 2003

lore
Share & tools
lore
#0 lore raw

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>

#1 lore raw
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

#2 lore raw

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

#3 lore raw
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