Iptables v1.4.4 + kernel 2.6.31 mangle marking changed?
Hi there,
Excuse me if this email might go wrong, it's my first message to a mailing list.
But here's my problem: (And I hope you guys could shed light for me...)
I originally ran Debian Lenny on kernel 2.6.18.
Since today I reinstalled it to Ubuntu Server 9.10 with kernel 2.6.31.
Now I used to do this in lenny:
iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -d 81.4.97.0/24 -j MARK --set-mark 0x1
This would cause relevant packets to be marked 0x1, which in return I had a 'ip rule':
my rules look like this:
ip rule show
0: from all lookup local 32760: from all fwmark 0x2 lookup upc 32761: from all fwmark 0x1 lookup xs4all 32762: from 192.168.1.XX lookup xs4all 32763: from 192.168.1.XX lookup upc 32764: from 24.132.104.XXX lookup upc 32765: from 192.168.2.XX lookup xs4all 32766: from all lookup main 32767: from all lookup default
And my 'xs4all' table looks like:
ip route show table xs4all
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.XX default via 192.168.2.X dev eth0
I know the rule matches packets i make:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 3111K packets, 1861M bytes)
pkts bytes target prot opt in out source destination 16 1100 MARK all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffff
But somehow the connection is never relayed over the xs4all table...
The changes I've noticed compared to lenny:
iptables now likes to mark my --set-mark 0x1 as a --set-xmark 0x1/0xffffffff whereas in lenny it would stay a --set-mark 0x1
Would be very pleased if someone could help me in this matter.
Greetings,
Ralph de Boom
Quoted 49 lines · Ralph de Boom
Hi there,
Excuse me if this email might go wrong, it's my first message to a mailing list.
But here's my problem: (And I hope you guys could shed light for me...)
I originally ran Debian Lenny on kernel 2.6.18.
Since today I reinstalled it to Ubuntu Server 9.10 with kernel 2.6.31.Now I used to do this in lenny:
iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -d 81.4.97.0/24 -j MARK --set-mark
0x1This would cause relevant packets to be marked
0x1, which in return I had a 'ip rule':my rules look like this:
ip rule show
0: from all lookup local 32760: from all fwmark 0x2 lookup upc 32761: from all fwmark 0x1 lookup xs4all 32762: from 192.168.1.XX lookup xs4all 32763: from 192.168.1.XX lookup upc 32764: from 24.132.104.XXX lookup upc 32765: from 192.168.2.XX lookup xs4all 32766: from all lookup main 32767: from all lookup defaultAnd my 'xs4all' table looks like:
ip route show table xs4all
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.XX default via 192.168.2.X dev eth0I know the rule matches packets i make:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 3111K packets, 1861M bytes)
pkts bytes target prot opt in out source
destination
16 1100 MARK all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffffBut somehow the connection is never relayed over the xs4all table...
Quoted 7 lines
The changes I've noticed compared to lenny:
iptables now likes to mark my --set-mark
0x1as a --set-xmark 0x1/0xffffffff
whereas in lenny it would stay a --set-mark0x1Would be very pleased if someone could help me in this matter.
Please try adding a LOG rule directly after the marking rule and see what it prints out for the MARK= value.
Patrick McHardy schreef:
Quoted 56 lines
Quoted 54 lines · Ralph de Boom
Hi there,
Excuse me if this email might go wrong, it's my first message to a mailing list.
But here's my problem: (And I hope you guys could shed light for me...)
I originally ran Debian Lenny on kernel 2.6.18.
Since today I reinstalled it to Ubuntu Server 9.10 with kernel 2.6.31.Now I used to do this in lenny:
iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -d 81.4.97.0/24 -j MARK --set-mark
0x1This would cause relevant packets to be marked
0x1, which in return I had a 'ip rule':my rules look like this:
ip rule show
0: from all lookup local 32760: from all fwmark 0x2 lookup upc 32761: from all fwmark 0x1 lookup xs4all 32762: from 192.168.1.XX lookup xs4all 32763: from 192.168.1.XX lookup upc 32764: from 24.132.104.XXX lookup upc 32765: from 192.168.2.XX lookup xs4all 32766: from all lookup main 32767: from all lookup defaultAnd my 'xs4all' table looks like:
ip route show table xs4all
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.XX default via 192.168.2.X dev eth0I know the rule matches packets i make:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 3111K packets, 1861M bytes)pkts bytes target prot opt in out source destination 16 1100 MARK all -- any any 192.168.1.0/24ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffff
But somehow the connection is never relayed over the xs4all table...
The changes I've noticed compared to lenny:
iptables now likes to mark my --set-mark
0x1as a --set-xmark 0x1/0xffffffff
whereas in lenny it would stay a --set-mark0x1
Quoted 7 lines
Quoted 2 lines
Would be very pleased if someone could help me in this matter.
Please try adding a LOG rule directly after the marking rule and see what it prints out for the MARK= value.
At first, thanks for helping me out!
Here's the info:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 42M packets, 25G bytes)
pkts bytes target prot opt in out source destination 362 84150 MARK all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffff
362 84150 LOG all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 LOG level debug prefix `fwmark 0x1: '
kern.log:
Nov 4 14:12:58 sakura kernel: [52836.368503] fwmark 0x1: IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.200 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=9696 DF PROTO=TCP SPT=61860 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 MARK=0x1 Nov 4 14:13:01 sakura kernel: [52839.368034] fwmark 0x1: IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.200 LEN=52 TOS=0x00 PREC=0x00 TTL=128 ID=11490 DF PROTO=TCP SPT=61860 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 MARK=0x1 Nov 4 14:13:07 sakura kernel: [52845.370049] fwmark 0x1: IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.200 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=15001 DF PROTO=TCP SPT=61860 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 MARK=0x1
Thanks!
Quoted 78 lines · Ralph de Boom
Patrick McHardy schreef:
Quoted 57 lines
Quoted 55 lines · Ralph de Boom
Hi there,
Excuse me if this email might go wrong, it's my first message to a mailing list.
But here's my problem: (And I hope you guys could shed light for me...)
I originally ran Debian Lenny on kernel 2.6.18.
Since today I reinstalled it to Ubuntu Server 9.10 with kernel 2.6.31.Now I used to do this in lenny:
iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -d 81.4.97.0/24 -j MARK --set-mark
0x1This would cause relevant packets to be marked
0x1, which in return I had a 'ip rule':my rules look like this:
ip rule show
0: from all lookup local 32760: from all fwmark 0x2 lookup upc 32761: from all fwmark 0x1 lookup xs4all 32762: from 192.168.1.XX lookup xs4all 32763: from 192.168.1.XX lookup upc 32764: from 24.132.104.XXX lookup upc 32765: from 192.168.2.XX lookup xs4all 32766: from all lookup main 32767: from all lookup defaultAnd my 'xs4all' table looks like:
ip route show table xs4all
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.XX default via 192.168.2.X dev eth0I know the rule matches packets i make:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 3111K packets, 1861M bytes)
pkts bytes target prot opt in out source
destination
16 1100 MARK all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffffBut somehow the connection is never relayed over the xs4all table...
The changes I've noticed compared to lenny:
iptables now likes to mark my --set-mark
0x1as a --set-xmark 0x1/0xffffffff
whereas in lenny it would stay a --set-mark0x1Quoted 7 lines
Quoted 2 lines
Would be very pleased if someone could help me in this matter.
Please try adding a LOG rule directly after the marking rule and see what it prints out for the MARK= value.
At first, thanks for helping me out!
Here's the info:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 42M packets, 25G bytes)
pkts bytes target prot opt in out source
destination
362 84150 MARK all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffff
362 84150 LOG all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 LOG level debug prefix `fwmark0x1: '
Quoted 3 lines
kern.log:
Nov 4 14:12:58 sakura kernel: [52836.368503] fwmark 0x1: IN=eth1 OUT=MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30
This looks fine, it also works properly for me. Perhaps the packets are already delivered locally through the "local" table. The TRACE target should be able to tell you more.
Patrick McHardy schreef:
Quoted 81 lines
Quoted 79 lines · Ralph de Boom
Patrick McHardy schreef:
Quoted 57 lines
Quoted 54 lines · Ralph de Boom
Hi there,
Excuse me if this email might go wrong, it's my first message to a mailing list.
But here's my problem: (And I hope you guys could shed light for me...)
I originally ran Debian Lenny on kernel 2.6.18.
Since today I reinstalled it to Ubuntu Server 9.10 with kernel 2.6.31.Now I used to do this in lenny:
iptables -t mangle -A PREROUTING -s 192.168.1.0/24 -d 81.4.97.0/24 -j MARK --set-mark
0x1This would cause relevant packets to be marked
0x1, which in return I had a 'ip rule':my rules look like this:
ip rule show
0: from all lookup local 32760: from all fwmark 0x2 lookup upc 32761: from all fwmark 0x1 lookup xs4all 32762: from 192.168.1.XX lookup xs4all 32763: from 192.168.1.XX lookup upc 32764: from 24.132.104.XXX lookup upc 32765: from 192.168.2.XX lookup xs4all 32766: from all lookup main 32767: from all lookup defaultAnd my 'xs4all' table looks like:
ip route show table xs4all
192.168.2.0/24 dev eth0 proto kernel scope link src 192.168.2.XX default via 192.168.2.X dev eth0I know the rule matches packets i make:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 3111K packets, 1861M bytes)pkts bytes target prot opt in out source destination 16 1100 MARK all -- any any 192.168.1.0/24ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffff
But somehow the connection is never relayed over the xs4all table...
The changes I've noticed compared to lenny:
iptables now likes to mark my --set-mark
0x1as a --set-xmark 0x1/0xffffffff
whereas in lenny it would stay a --set-mark0x1Quoted 8 lines
Quoted 3 lines
Would be very pleased if someone could help me in this matter.
Please try adding a LOG rule directly after the marking rule and see what it prints out for the MARK= value.
At first, thanks for helping me out!
Here's the info:
iptables -t mangle -v -L
Chain PREROUTING (policy ACCEPT 42M packets, 25G bytes)pkts bytes target prot opt in out source destination 362 84150 MARK all -- any any 192.168.1.0/24ip-space.by.proserve.nl/24 MARK xset 0x1/0xffffffff
362 84150 LOG all -- any any 192.168.1.0/24
ip-space.by.proserve.nl/24 LOG level debug prefix `fwmark0x1: '
Quoted 9 lines
Quoted 4 lines
kern.log:
Nov 4 14:12:58 sakura kernel: [52836.368503] fwmark 0x1: IN=eth1 OUT=MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30
This looks fine, it also works properly for me. Perhaps the packets are already delivered locally through the "local" table. The TRACE target should be able to tell you more.
Right, at this point you've lost me, how I will manage to do that, and where does the infomation get stored?
Quoted 3 lines
Right, at this point you've lost me, how I will manage to do that, and where does the infomation get stored?
You will need to turn trace on...
iptables -A PREROUTING -t raw -J TRACE will turn tracing on for everything.
The information is then stored in the syslog as per your syslog configuration - TRACE will show which rules etc your packets have encountered.
Signature · 5 lines
Richard Horton Users are like a virus: Each causing a thousand tiny crises until the host finally dies. http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats http://www.pbase.com/arimus - My online photogallery
Richard Horton schreef:
Quoted 4 lines
Quoted 3 lines
Right, at this point you've lost me, how I will manage to do that, and where does the infomation get stored?
Quoted 8 lines
You will need to turn trace on...
iptables -A PREROUTING -t raw -J TRACE will turn tracing on for everything.The information is then stored in the syslog as per your syslog configuration - TRACE will show which rules etc your packets have encountered.
Ok got that since kern.log will get majorly flooded I grepped the output. If needed I can attach the whole log?
cat kern.log | grep 81.4.97.
Nov 5 18:48:14 sakura kernel: [ 194.028498] fwmark 0x1: IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028527] TRACE: mangle:PREROUTING:policy:3 IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028570] TRACE: mangle:FORWARD:policy:1 IN=eth1 OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028598] TRACE: filter:FORWARD:rule:1 IN=eth1 OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028626] TRACE: mangle:POSTROUTING:policy:1 IN= OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.149805] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:14 sakura kernel: [ 194.149861] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:15 sakura kernel: [ 195.173980] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:15 sakura kernel: [ 195.174046] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:27 sakura kernel: [ 207.173329] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:27 sakura kernel: [ 207.173394] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:52 sakura kernel: [ 231.380824] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:52 sakura kernel: [ 231.380891] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:49:40 sakura kernel: [ 279.579532] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:49:40 sakura kernel: [ 279.579591] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402)
Ralph de Boom schreef:
Quoted 18 lines
Richard Horton schreef:
Quoted 4 lines
Quoted 3 lines
Right, at this point you've lost me, how I will manage to do that, and where does the infomation get stored?
Quoted 8 lines
You will need to turn trace on...
iptables -A PREROUTING -t raw -J TRACE will turn tracing on for everything.The information is then stored in the syslog as per your syslog configuration - TRACE will show which rules etc your packets have encountered.
Ok got that since kern.log will get majorly flooded I grepped the output. If needed I can attach the whole log?
cat kern.log | grep 81.4.97.
Quoted 15 lines
Nov 5 18:48:14 sakura kernel: [ 194.028498] fwmark 0x1: IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 WINDOW=8192 RES=0x00 SYN URGP=0 MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028527] TRACE: mangle:PREROUTING:policy:3 IN=eth1 OUT= MAC=00:1b:21:2d:a9:fa:00:1b:21:32:99:5f:08:00 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=128 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028570] TRACE: mangle:FORWARD:policy:1 IN=eth1 OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028598] TRACE: filter:FORWARD:rule:1 IN=eth1 OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.028626] TRACE: mangle:POSTROUTING:policy:1 IN= OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1 Nov 5 18:48:14 sakura kernel: [ 194.149805] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:14 sakura kernel: [ 194.149861] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:15 sakura kernel: [ 195.173980] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:15 sakura kernel: [ 195.174046] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:27 sakura kernel: [ 207.173329] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:27 sakura kernel: [ 207.173394] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:52 sakura kernel: [ 231.380824] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:48:52 sakura kernel: [ 231.380891] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:49:40 sakura kernel: [ 279.579532] TRACE: raw:PREROUTING:policy:2 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402) Nov 5 18:49:40 sakura kernel: [ 279.579591] TRACE: mangle:PREROUTING:policy:3 IN=eth0 OUT= MAC=00:50:bf:65:b7:c1:00:18:39:27:fc:5a:08:00 SRC=81.4.97.160 DST=192.168.2.40 LEN=48 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP SPT=80 DPT=52436 SEQ=3690844742 ACK=2949910604 WINDOW=5840 RES=0x00 ACK SYN URGP=0 OPT (020405B401010402)
Im pretty patient, but since I haven't seen a response in a week I'm poking you guys again.
2009/11/10 Ralph de Boom <[email protected]>:
Quoted 1 line
Ralph de Boom schreef:
Nov 5 18:48:14 sakura kernel: [ 194.028598] TRACE:
filter:FORWARD:rule:1 IN=eth1 OUT=eth0 SRC=192.168.1.30 DST=81.4.97.160 LEN=48 TOS=0x00 PREC=0x00 TTL=127 ID=13005 DF PROTO=TCP SPT=52436 DPT=80 SEQ=2949910603 ACK=0 WINDOW=8192 RES=0x00 SYN URGP=0 OPT (0204116C01010402) MARK=0x1
Ralph, only the entry above is from one of your iptable rules which looks like the rules you are using to carry out the packet mangling/nat/etc are not being hit - all the others are 'policy' entries which are basically just saying oh look I went via 'x using chain y'....
Signature · 5 lines
Richard Horton Users are like a virus: Each causing a thousand tiny crises until the host finally dies. http://www.solstans.co.uk - Solstans Japanese Bobtails and Norwegian Forest Cats http://www.pbase.com/arimus - My online photogallery