Skip to contentSkip to conversation

how to log pacets which hit routing rules?

LARTC Jan Macek 4 participants 4 messages Aug 25, 2002 – Aug 29, 2002

lore
Share & tools
lore

Jan Macek

author
#0 lore raw

Hi,

Is there some way to make iproute2 log to syslog or to a file selected packets?

I have a problem, that my packets dissapear somewhere, and I want to be sure if they get to the routing stage or not, and where do they get routed.

Signature · 8 lines
Miernik              _____________________________________
                    /   /
tel.: +48603070983 /   /  mailto:[email protected]
__________________/___/  ICQ UIN: 4004001

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#1 lore raw
Quoted 10 lines · Jan Macek

Hi,

Is there some way to make iproute2 log to syslog or to a file selected packets?

I have a problem, that my packets dissapear somewhere, and I want to be sure if they get to the routing stage or not, and where do they get routed.

use the iptables or ipchains with --log switch

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to Jan Macek

On Thu, Aug 29, 2002 at 03:17:55PM +0200, Wojtek wrote:

| Jan Macek wrote:
| >Is there some way to make iproute2 log to syslog or to a file selected
| >packets?
| 
| use the iptables or ipchains with --log switch

iptables does not have a --log switch. You must use the '-j LOG' target instead.

-James

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to Jan Macek
Quoted 8 lines · Wojtek
Quoted 6 lines

Is there some way to make iproute2 log to syslog or to a file selected packets?

I have a problem, that my packets dissapear somewhere, and I want to be sure if they get to the routing stage or not, and where do they get routed.

use the iptables or ipchains with --log switch

I know that, but I did not mean that.

I want to log packets _at_the_roting_stage_, not at the filtering or NAT stage.

Signature · 8 lines
Miernik              _____________________________________
                    /   /
tel.: +48603070983 /   /  mailto:[email protected]
__________________/___/  ICQ UIN: 4004001

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/