Skip to main content
added information from comment; English
Source Link
Gilles 'SO- stop being evil'
  • 865.3k
  • 205
  • 1.8k
  • 2.3k

iptables, mark and sense Mark packets between machines (client and router)?

Can I mark a packet on the client's OUTPUT chain and add an iproute policy on the router, to route them via a specific gateway? That is,This what I tried out.to do, but no resultsit isn't working.

My clientsclient's mangle table dump:

After some moments and sending test packets (pings from a client connected to the router via wifi, sent to a host outside the intranet), the LOG counterscounter on the router is equalsremains equal to zero.

iptables, mark and sense packets between machines (client and router)?

Can I mark a packet on the client's OUTPUT chain and add iproute policy on the router, to route them via a specific gateway? That is, what I tried out. but no results.

My clients mangle table dump:

After some moments and sending test packets, the LOG counters on the router is equals zero.

Mark packets between machines (client and router)?

Can I mark a packet on the client's OUTPUT chain and add an iproute policy on the router to route them via a specific gateway? This what I tried to do, but it isn't working.

My client's mangle table dump:

After some moments and sending test packets (pings from a client connected to the router via wifi, sent to a host outside the intranet), the LOG counter on the router remains equal to zero.

deleted 10 characters in body
Source Link
slm
  • 379.7k
  • 127
  • 793
  • 897

iptables, mark and sense packets between machines  (client and router)?

Can iI mark a packet on the client's OUTPUT chain and add iproute policy on the router  , to route them via a specific gateway?

  That is which i, what I tried out. but no results.

iptablesiptables mangle table's INPUT chain dump on the router:

After some moments and sending test packets, the the LOG counters on the router is equals zero.

What's happened to my packets? where my packets lose their marks?

Questions

Thanks in advanced.

  • What's happened to my packets?
  • Where my packets lose their marks?

iptables, mark and sense packets between machines(client and router)?

Can i mark a packet on the client's OUTPUT chain and add iproute policy on the router  , to route them via specific gateway?

  That is which i tried out. but no results.

iptables mangle table's INPUT chain dump on the router:

After some moments and sending test packets, the the LOG counters on the router is equals zero.

What's happened to my packets? where my packets lose their marks?

Thanks in advanced.

iptables, mark and sense packets between machines  (client and router)?

Can I mark a packet on the client's OUTPUT chain and add iproute policy on the router, to route them via a specific gateway? That is, what I tried out. but no results.

iptables mangle table's INPUT chain dump on the router:

After some moments and sending test packets, the LOG counters on the router is equals zero.

Questions

  • What's happened to my packets?
  • Where my packets lose their marks?
Source Link
pylover
  • 3.6k
  • 6
  • 23
  • 26

iptables, mark and sense packets between machines(client and router)?

Can i mark a packet on the client's OUTPUT chain and add iproute policy on the router , to route them via specific gateway?

That is which i tried out. but no results.

My clients mangle table dump:

Chain OUTPUT (policy ACCEPT 13884 packets, 2327K bytes)
 pkts bytes target     prot opt in     out     source               destination         
13917 2330K MARK       all  --  *      *       0.0.0.0/0            0.0.0.0/0            MARK set 0x2

Chain POSTROUTING (policy ACCEPT 13889 packets, 2328K bytes)
 pkts bytes target     prot opt in     out     source               destination         
13889 2328K LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x2 LOG flags 0 level 4

iptables mangle table's INPUT chain dump on the router:

Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            mark match 0x2 LOG flags 0 level 4
 2074  196K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            state RELATED,ESTABLISHED
   88 14890 ACCEPT     all  --  ethint *       0.0.0.0/0            0.0.0.0/0           
    0     0 ACCEPT     all  --  eth0   *       0.0.0.0/0            0.0.0.0/0           

After some moments and sending test packets, the the LOG counters on the router is equals zero.

What's happened to my packets? where my packets lose their marks?

Thanks in advanced.