* [LARTC] process id with firewall and tc
@ 2006-09-16 13:38 William Bohannan
2006-09-16 14:17 ` Simon Lodal
2006-09-16 18:08 ` William Bohannan
0 siblings, 2 replies; 3+ messages in thread
From: William Bohannan @ 2006-09-16 13:38 UTC (permalink / raw)
To: lartc
[-- Attachment #1.1: Type: text/plain, Size: 431 bytes --]
Not sure this is the correct place to post this but I am looking to have
status of the firewall and traffic control (active, disabled, stopped etc)
on a webpage controlled via something like pid as the machine has many
things running on it, like firewall, traffic control, data collection for
graphing the traffic flows, as well as other services like squid etc. Any
ideas would be most helpful.
Kind Regards
William
[-- Attachment #1.2: Type: text/html, Size: 2526 bytes --]
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LARTC] process id with firewall and tc
2006-09-16 13:38 [LARTC] process id with firewall and tc William Bohannan
@ 2006-09-16 14:17 ` Simon Lodal
2006-09-16 18:08 ` William Bohannan
1 sibling, 0 replies; 3+ messages in thread
From: Simon Lodal @ 2006-09-16 14:17 UTC (permalink / raw)
To: lartc
Routing, firewalling and shaping run in kernel and has no pid. Instead you can
get/set /proc flags, and check for the presence of certain data structures.
/proc/sys/net/ipv4/ip_forward is the routing master switch. If 0, the machine
forwards nothing. You can both set and get the value, should be relatively
easy from a web page. Beware that setting it to 1 may reset other /proc keys
to default values.
For iptables firewalling you probably need to check if your rules are loaded
or not, a script parsing 'iptables -nL' output could do it. Or you could use
a condition match "enabled" in the beginning of each table, and drop all
traffic if the condition is false. The /proc/net/ipt_condition/enabled value
can then be read and set as a master switch from the web page.
Shaping has no /proc files, and no way to create a master switch, so you need
a script that parses 'tc qdisc show dev eth0' or 'tc class show dev eth0'
output.
Regards,
Simon
On Saturday 16 September 2006 15:38, William Bohannan wrote:
> Not sure this is the correct place to post this but I am looking to have
> status of the firewall and traffic control (active, disabled, stopped etc)
> on a webpage controlled via something like pid as the machine has many
> things running on it, like firewall, traffic control, data collection for
> graphing the traffic flows, as well as other services like squid etc. Any
> ideas would be most helpful.
>
>
>
> Kind Regards
>
>
>
> William
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [LARTC] process id with firewall and tc
2006-09-16 13:38 [LARTC] process id with firewall and tc William Bohannan
2006-09-16 14:17 ` Simon Lodal
@ 2006-09-16 18:08 ` William Bohannan
1 sibling, 0 replies; 3+ messages in thread
From: William Bohannan @ 2006-09-16 18:08 UTC (permalink / raw)
To: lartc
Thanks Simon. That helps out heaps. Going to use what you said and use
monit.
Kind Regards
William
-----Original Message-----
From: Simon Lodal [mailto:simonl@parknet.dk]
Sent: 16 September 2006 14:17
To: lartc@mailman.ds9a.nl
Cc: William Bohannan
Subject: Re: [LARTC] process id with firewall and tc
Routing, firewalling and shaping run in kernel and has no pid. Instead you
can
get/set /proc flags, and check for the presence of certain data structures.
/proc/sys/net/ipv4/ip_forward is the routing master switch. If 0, the
machine
forwards nothing. You can both set and get the value, should be relatively
easy from a web page. Beware that setting it to 1 may reset other /proc keys
to default values.
For iptables firewalling you probably need to check if your rules are loaded
or not, a script parsing 'iptables -nL' output could do it. Or you could use
a condition match "enabled" in the beginning of each table, and drop all
traffic if the condition is false. The /proc/net/ipt_condition/enabled value
can then be read and set as a master switch from the web page.
Shaping has no /proc files, and no way to create a master switch, so you
need
a script that parses 'tc qdisc show dev eth0' or 'tc class show dev eth0'
output.
Regards,
Simon
On Saturday 16 September 2006 15:38, William Bohannan wrote:
> Not sure this is the correct place to post this but I am looking to have
> status of the firewall and traffic control (active, disabled, stopped etc)
> on a webpage controlled via something like pid as the machine has many
> things running on it, like firewall, traffic control, data collection for
> graphing the traffic flows, as well as other services like squid etc. Any
> ideas would be most helpful.
>
>
>
> Kind Regards
>
>
>
> William
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-09-16 18:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-16 13:38 [LARTC] process id with firewall and tc William Bohannan
2006-09-16 14:17 ` Simon Lodal
2006-09-16 18:08 ` William Bohannan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.