Results 1 to 2 of 2
Hello!
I have the following problem with iptables in Debian 6:
My server works as a router and it needs to log server external IP+port for all outgoing connections.
But ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-18-2012 #1Just Joined!
- Join Date
- Jul 2012
- Posts
- 1
iptables: log connection after SNAT/MASQUERADE command
Hello!
I have the following problem with iptables in Debian 6:
My server works as a router and it needs to log server external IP+port for all outgoing connections.
But after command SNAT or MASQUERADE traffic is "lost".
I mean no following rules can catch those traffic.
Everything looks like SNAT/MASQUERADE is the "end" rule and it pushes traffic to network immediately.
Question:
How can I log routed connection data with server external IP and port?
- 07-20-2012 #2
Have a look at LOGging in IPTAVLES to log the packets before SNAT/MASQ.
IPTABLES LOGTARGET


Reply With Quote
