Re: IPTABLES + PREROUTING + --set-mark + Ubuntu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OH nice trick! thks.. so I can see my packets are actually being
marked.. the problem is probably somewhere else then.. the number 32
increase as i try to connect..

Chain PREROUTING (policy ACCEPT 136K packets, 39M bytes)
 pkts bytes target     prot opt in     out     source               destination
   32  1628 MARK       tcp  --  *      *       0.0.0.0/0
0.0.0.0/0            tcp dpt:80 MARK set 0x2
  218 77118 MARK       tcp  --  *      *       0.0.0.0/0
0.0.0.0/0            tcp spt:80 MARK set 0x2
 136K   39M MARK       all  --  *      *       0.0.0.0/0
0.0.0.0/0            MARK set 0x2

Chain INPUT (policy ACCEPT 136K packets, 39M bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 174K packets, 144M bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain POSTROUTING (policy ACCEPT 176K packets, 144M bytes)
 pkts bytes target     prot opt in     out     source               destination


This is the result of table main (OPENVPN did this):
0.0.0.0/1 via 10.107.1.5 dev tun0
default via 192.168.2.1 dev eth0  proto static
10.107.1.1 via 10.107.1.5 dev tun0
10.107.1.5 dev tun0  proto kernel  scope link  src 10.107.1.6
128.0.0.0/1 via 10.107.1.5 dev tun0
162.xx.xxx.xx via 192.168.2.1 dev eth0
192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.20  metric 1

table 2:
default via 192.168.2.1 dev eth0
192.168.2.0/24 dev eth0  proto kernel  scope link  src 192.168.2.20  metric 1

I'll try to do more test.. You have an idea why it still timing out
tho? and not timing out with this:
sudo ip rule add from 192.168.2.0/24 table ht

Thks a lot!
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux