All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: MRTG and IPTABLES
@ 2004-01-08  6:47 Gilles Yue
  2004-01-08  9:27 ` Antony Stone
  0 siblings, 1 reply; 19+ messages in thread
From: Gilles Yue @ 2004-01-08  6:47 UTC (permalink / raw)
  To: Daniel F. Chief Security Engineer -, netfilter

Dear sir,

Have tried your commands below but when I run my iptables script, 

I get "command not found" and it points to the line 

$SNMP_POLLER_IP="xxx.xxx.xxx.xxx"

Thanks
gy


-----Original Message-----
From: Daniel F. Chief Security Engineer -
[mailto:danielf@supportteam.net] 
Sent: Wednesday, January 07, 2004 6:18 PM
To: Gilles Yue; netfilter@lists.netfilter.org
Subject: Re: MRTG and IPTABLES

try

$IPTABLES -A INPUT -p udp --dport 161 -j ACCEPT 

assuming that yuo are tryinh to accept port 161 on the local machine. if
you 
doing stateful it should look similar to this. 

# IP of machine running MRTG
$SNMP_POLLER_IP="xxx.xxx.xxx.xxx"

$IPTABLES -A INPUT -p udp -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -p udp --dport 161 -m state --state NEW -s
$SNMP_POLLER_IP 
-j ACCEPT

$IPTABLES -A OUTPUT -p udp -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A OUTPUT -p udp --sport 161 -m state --state NEW -s
$SNMP_POLLER_IP 
-j ACCEPT

This is assuming you have set the ploicies to drop
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP

On Wednesday 07 January 2004 06:46, Gilles Yue wrote:
> Hi,
>
> Is this the way it should be in iptables?
>
> #Open SNMP Ports
> $IPTABLES -A INPUT -p udp -m udp --dport 161 -j ACCEPT
>
> Have tried it, not working
>
> Thanks.
> Gy
>
> -----Original Message-----
> From: Daniel F. Chief Security Engineer -
> [mailto:danielf@supportteam.net]
> Sent: Wednesday, January 07, 2004 4:45 PM
> To: Gilles Yue; netfilter@lists.netfilter.org
> Subject: Re: MRTG and IPTABLES
>
> SNMP UDP Ports 161 and 162 MRTG typically only uses 161.
>
>
> Thanks
>
> On Wednesday 07 January 2004 00:54, Gilles Yue wrote:
> > MRTG cannot work properly due to iptables running.
> >
> >
> >
> > Anybody knows which port number to open to enable MRTG to work
>
> properly.
>
> > Thanks.
> >
> >
> >
> > Rgds
> >
> > gy

-- 
Daniel Fairchild - Chief Security Officer | danielf@supportteam.net
The distance between nothing and infinity is always the same no matter
how 
close you get to nothing.


^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: MRTG and IPTABLES
@ 2004-01-09  5:54 Gilles Yue
  0 siblings, 0 replies; 19+ messages in thread
From: Gilles Yue @ 2004-01-09  5:54 UTC (permalink / raw)
  To: Alexis; +Cc: netfilter

That's it. 
Thanks very much.

gy

-----Original Message-----
From: Alexis [mailto:alexis@attla.net.ar] 
Sent: Thursday, January 08, 2004 5:47 PM
To: Gilles Yue
Subject: Re: MRTG and IPTABLES

POSTROUTING match all packets leaving the firewall, so you need to add
the
same rule, try with


iptables -t nat -A POSTROUTING -p udp --dport 161 -j ACCEPT


----- Original Message ----- 
From: "Gilles Yue" <gyue@novelgmt.intnet.mu>
To: "Gilles Yue" <gyue@novelgmt.intnet.mu>
Cc: <netfilter@lists.netfilter.org>
Sent: Thursday, January 08, 2004 8:56 AM
Subject: RE: MRTG and IPTABLES


Hi,

I have opened port 161 in my firewall script.

$IPTABLES -A INPUT -p udp -m udp --dport 161 -j ACCEPT

However, POSRTOUTING SET TO DROP By default, is preventing MRTG
from running properly. (I have tried setting POSTROUTING TO ACCEPT
and MRTG works fine)

$IPTABLES -t nat -P POSTROUTING DROP

Does anybody know how do I allow MRTG to run with POSTROUTING
SET TO DROP?

Thanks
gy


-----Original Message-----
From: Gilles Yue
Sent: Thursday, January 08, 2004 10:47 AM
To: Daniel F. Chief Security Engineer -; netfilter@lists.netfilter.org
Subject: RE: MRTG and IPTABLES

Dear sir,

Have tried your commands below but when I run my iptables script,

I get "command not found" and it points to the line

$SNMP_POLLER_IP="xxx.xxx.xxx.xxx"

Thanks
gy


-----Original Message-----
From: Daniel F. Chief Security Engineer -
[mailto:danielf@supportteam.net]
Sent: Wednesday, January 07, 2004 6:18 PM
To: Gilles Yue; netfilter@lists.netfilter.org
Subject: Re: MRTG and IPTABLES

try

$IPTABLES -A INPUT -p udp --dport 161 -j ACCEPT

assuming that yuo are tryinh to accept port 161 on the local machine. if
you
doing stateful it should look similar to this.

# IP of machine running MRTG
$SNMP_POLLER_IP="xxx.xxx.xxx.xxx"

$IPTABLES -A INPUT -p udp -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -p udp --dport 161 -m state --state NEW -s
$SNMP_POLLER_IP
-j ACCEPT

$IPTABLES -A OUTPUT -p udp -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A OUTPUT -p udp --sport 161 -m state --state NEW -s
$SNMP_POLLER_IP
-j ACCEPT

This is assuming you have set the ploicies to drop
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP

On Wednesday 07 January 2004 06:46, Gilles Yue wrote:
> Hi,
>
> Is this the way it should be in iptables?
>
> #Open SNMP Ports
> $IPTABLES -A INPUT -p udp -m udp --dport 161 -j ACCEPT
>
> Have tried it, not working
>
> Thanks.
> Gy
>
> -----Original Message-----
> From: Daniel F. Chief Security Engineer -
> [mailto:danielf@supportteam.net]
> Sent: Wednesday, January 07, 2004 4:45 PM
> To: Gilles Yue; netfilter@lists.netfilter.org
> Subject: Re: MRTG and IPTABLES
>
> SNMP UDP Ports 161 and 162 MRTG typically only uses 161.
>
>
> Thanks
>
> On Wednesday 07 January 2004 00:54, Gilles Yue wrote:
> > MRTG cannot work properly due to iptables running.
> >
> >
> >
> > Anybody knows which port number to open to enable MRTG to work
>
> properly.
>
> > Thanks.
> >
> >
> >
> > Rgds
> >
> > gy

-- 
Daniel Fairchild - Chief Security Officer | danielf@supportteam.net
The distance between nothing and infinity is always the same no matter
how
close you get to nothing.






^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: MRTG and IPTABLES
@ 2004-01-08 11:56 Gilles Yue
  2004-01-08 12:07 ` Antony Stone
  0 siblings, 1 reply; 19+ messages in thread
From: Gilles Yue @ 2004-01-08 11:56 UTC (permalink / raw)
  To: Gilles Yue; +Cc: netfilter

Hi,

	I have opened port 161 in my firewall script. 
	
	$IPTABLES -A INPUT -p udp -m udp --dport 161 -j ACCEPT

	However, POSRTOUTING SET TO DROP By default, is preventing MRTG
from 	running properly. (I have tried setting POSTROUTING TO ACCEPT
and MRTG 	works fine)

	$IPTABLES -t nat -P POSTROUTING DROP

	Does anybody know how do I allow MRTG to run with POSTROUTING
SET TO 	DROP?

Thanks
gy


-----Original Message-----
From: Gilles Yue 
Sent: Thursday, January 08, 2004 10:47 AM
To: Daniel F. Chief Security Engineer -; netfilter@lists.netfilter.org
Subject: RE: MRTG and IPTABLES

Dear sir,

Have tried your commands below but when I run my iptables script, 

I get "command not found" and it points to the line 

$SNMP_POLLER_IP="xxx.xxx.xxx.xxx"

Thanks
gy


-----Original Message-----
From: Daniel F. Chief Security Engineer -
[mailto:danielf@supportteam.net] 
Sent: Wednesday, January 07, 2004 6:18 PM
To: Gilles Yue; netfilter@lists.netfilter.org
Subject: Re: MRTG and IPTABLES

try

$IPTABLES -A INPUT -p udp --dport 161 -j ACCEPT 

assuming that yuo are tryinh to accept port 161 on the local machine. if
you 
doing stateful it should look similar to this. 

# IP of machine running MRTG
$SNMP_POLLER_IP="xxx.xxx.xxx.xxx"

$IPTABLES -A INPUT -p udp -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -p udp --dport 161 -m state --state NEW -s
$SNMP_POLLER_IP 
-j ACCEPT

$IPTABLES -A OUTPUT -p udp -m state --state ESTABLISHED,RELATED -j
ACCEPT
$IPTABLES -A OUTPUT -p udp --sport 161 -m state --state NEW -s
$SNMP_POLLER_IP 
-j ACCEPT

This is assuming you have set the ploicies to drop
$IPTABLES -P INPUT DROP
$IPTABLES -P OUTPUT DROP

On Wednesday 07 January 2004 06:46, Gilles Yue wrote:
> Hi,
>
> Is this the way it should be in iptables?
>
> #Open SNMP Ports
> $IPTABLES -A INPUT -p udp -m udp --dport 161 -j ACCEPT
>
> Have tried it, not working
>
> Thanks.
> Gy
>
> -----Original Message-----
> From: Daniel F. Chief Security Engineer -
> [mailto:danielf@supportteam.net]
> Sent: Wednesday, January 07, 2004 4:45 PM
> To: Gilles Yue; netfilter@lists.netfilter.org
> Subject: Re: MRTG and IPTABLES
>
> SNMP UDP Ports 161 and 162 MRTG typically only uses 161.
>
>
> Thanks
>
> On Wednesday 07 January 2004 00:54, Gilles Yue wrote:
> > MRTG cannot work properly due to iptables running.
> >
> >
> >
> > Anybody knows which port number to open to enable MRTG to work
>
> properly.
>
> > Thanks.
> >
> >
> >
> > Rgds
> >
> > gy

-- 
Daniel Fairchild - Chief Security Officer | danielf@supportteam.net
The distance between nothing and infinity is always the same no matter
how 
close you get to nothing.



^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: MRTG and IPTABLES
@ 2004-01-07 16:17 mpdykeman
  0 siblings, 0 replies; 19+ messages in thread
From: mpdykeman @ 2004-01-07 16:17 UTC (permalink / raw)
  To: EugeneJ; +Cc: netfilter

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

MRTG uses snmp to poll devices...

SNMP runs on two ports -- udp/161 (polling from the monitoring console)
and udp/162 (SNMP traps sent to monitoring console)

For your purposes, you are probably interested in udp/161

-mpd

[-- Attachment #2: Type: text/html, Size: 737 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: MRTG and IPTABLES
@ 2004-01-07 12:46 Gilles Yue
  2004-01-07 12:57 ` Antony Stone
  2004-01-07 14:17 ` Daniel F. Chief Security Engineer -
  0 siblings, 2 replies; 19+ messages in thread
From: Gilles Yue @ 2004-01-07 12:46 UTC (permalink / raw)
  To: Daniel F. Chief Security Engineer -, netfilter

Hi,

Is this the way it should be in iptables?

#Open SNMP Ports
$IPTABLES -A INPUT -p udp -m udp --dport 161 -j ACCEPT

Have tried it, not working

Thanks. 
Gy

-----Original Message-----
From: Daniel F. Chief Security Engineer -
[mailto:danielf@supportteam.net] 
Sent: Wednesday, January 07, 2004 4:45 PM
To: Gilles Yue; netfilter@lists.netfilter.org
Subject: Re: MRTG and IPTABLES

SNMP UDP Ports 161 and 162 MRTG typically only uses 161. 


Thanks

On Wednesday 07 January 2004 00:54, Gilles Yue wrote:
> MRTG cannot work properly due to iptables running.
>
>
>
> Anybody knows which port number to open to enable MRTG to work
properly.
>
>
>
> Thanks.
>
>
>
> Rgds
>
> gy

-- 
Daniel Fairchild - Chief Security Officer | danielf@supportteam.net
The distance between nothing and infinity is always the same no matter
how 
close you get to nothing.


^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: MRTG and IPTABLES
@ 2004-01-07  9:34 Gilles Yue
  2004-01-07  9:44 ` Antony Stone
  2004-01-07  9:55 ` Jesper Lund
  0 siblings, 2 replies; 19+ messages in thread
From: Gilles Yue @ 2004-01-07  9:34 UTC (permalink / raw)
  To: Eugene Joubert; +Cc: netfilter

Hi,
	Opening port 1491 does not work.  Any other idea?

	Thanks anyway.

	Gy

-----Original Message-----
From: Eugene Joubert [mailto:EugeneJ@centratel.co.za] 
Sent: Wednesday, January 07, 2004 12:29 PM
Cc: netfilter@lists.netfilter.org
Subject: RE: MRTG and IPTABLES

Hi,

It uses SNMP protocol. I think this is built on top of the UDP protocol.
I
am not sure. Try opening up UDP port 1491. 

Hope this helps

Eugene

-----Original Message-----
From: John A. Sullivan III [mailto:john.sullivan@nexusmgmt.com] 
Sent: 07/01/2004 10:04 AM
To: Gilles Yue
Cc: netfilter@lists.netfilter.org
Subject: Re: MRTG and IPTABLES


On Wed, 2004-01-07 at 01:54, Gilles Yue wrote:
> MRTG cannot work properly due to iptables running.
> 
>  
> 
> Anybody knows which port number to open to enable MRTG to work 
> properly.
> 
>  
<snip>

No, not off hand but you can use a tool like Ethereal
(http://www.ethereal.com) or just tcpdump or even just log the ropped
packets in iptables to determine what MRTG is trying to do.  Good luck -
John
> 
>  
-- 
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net 




^ permalink raw reply	[flat|nested] 19+ messages in thread
* RE: MRTG and IPTABLES
@ 2004-01-07  8:28 Eugene Joubert
  0 siblings, 0 replies; 19+ messages in thread
From: Eugene Joubert @ 2004-01-07  8:28 UTC (permalink / raw)
  Cc: netfilter

Hi,

It uses SNMP protocol. I think this is built on top of the UDP protocol. I
am not sure. Try opening up UDP port 1491. 

Hope this helps

Eugene

-----Original Message-----
From: John A. Sullivan III [mailto:john.sullivan@nexusmgmt.com] 
Sent: 07/01/2004 10:04 AM
To: Gilles Yue
Cc: netfilter@lists.netfilter.org
Subject: Re: MRTG and IPTABLES


On Wed, 2004-01-07 at 01:54, Gilles Yue wrote:
> MRTG cannot work properly due to iptables running.
> 
>  
> 
> Anybody knows which port number to open to enable MRTG to work 
> properly.
> 
>  
<snip>

No, not off hand but you can use a tool like Ethereal
(http://www.ethereal.com) or just tcpdump or even just log the ropped
packets in iptables to determine what MRTG is trying to do.  Good luck -
John
> 
>  
-- 
John A. Sullivan III
Chief Technology Officer
Nexus Management
+1 207-985-7880
john.sullivan@nexusmgmt.com
---
If you are interested in helping to develop a GPL enterprise class
VPN/Firewall/Security device management console, please visit
http://iscs.sourceforge.net 



^ permalink raw reply	[flat|nested] 19+ messages in thread
* MRTG and IPTABLES
@ 2004-01-07  6:54 Gilles Yue
  2004-01-07  8:03 ` John A. Sullivan III
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Gilles Yue @ 2004-01-07  6:54 UTC (permalink / raw)
  To: netfilter

[-- Attachment #1: Type: text/plain, Size: 180 bytes --]

MRTG cannot work properly due to iptables running.

 

Anybody knows which port number to open to enable MRTG to work properly.

 

Thanks.

 

Rgds

gy

 

 


[-- Attachment #2: Type: text/html, Size: 2264 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2004-02-14 21:30 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-08  6:47 MRTG and IPTABLES Gilles Yue
2004-01-08  9:27 ` Antony Stone
2004-01-08 13:13   ` Daniel F. Chief Security Engineer -
  -- strict thread matches above, loose matches on Subject: below --
2004-01-09  5:54 Gilles Yue
2004-01-08 11:56 Gilles Yue
2004-01-08 12:07 ` Antony Stone
2004-01-07 16:17 mpdykeman
2004-01-07 12:46 Gilles Yue
2004-01-07 12:57 ` Antony Stone
2004-01-07 14:17 ` Daniel F. Chief Security Engineer -
2004-01-07  9:34 Gilles Yue
2004-01-07  9:44 ` Antony Stone
2004-01-07  9:55 ` Jesper Lund
2004-01-07  8:28 Eugene Joubert
2004-01-07  6:54 Gilles Yue
2004-01-07  8:03 ` John A. Sullivan III
2004-01-07 12:44 ` Daniel F. Chief Security Engineer -
2004-01-07 16:06   ` Søren Kent Jensen
2004-02-14 21:30 ` Ian McBeth

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.