View previous topic :: View next topic |
Author |
Message |
rahulbhansali24 n00b
Joined: 15 Feb 2013 Posts: 3 Location: India
|
Posted: Fri Feb 15, 2013 7:18 am Post subject: Facing issue in ip6table rule for port based routing |
|
|
Hi,
Please help me on issue described below,
I have 4 machine setup, M1 -> M2 -> M3 | M4. And A laptop that can be reachable through both M3 and M4.
M2 has 2 NIC conected to M3 and M4. Now I want to divide the flow coming from M1 for laptop.
At M2, I have done following,
==============================
ip6tables -t mangle -A PREROUTING -p udp –dport 80 -j MARK –set-mark 12
echo 2 udp_flow >> /etc/iproute2/rt_tables
ip -6 rule add fwmark 12 table udp_flow
ip -6 route add $laptop-ip dev eth2 table udp_flow
==============================
Now if I send UDP traffic from M1 destined to Laptop IP, then if packet size is less then 1410 bytes then I can see complete UDP packets at M4 and successfully delivered to Laptop.
But if packet size > 1410 bytes, then fragmentaion happens and I can see only 1st fragmented packet at M4, not successive fragmented packets. I searched and find out that only 1st fragmented packet have information of UDP and destination port and hence marked properly and routed. Other fragmented packets have only UDP information not destination port, so not marked and dropped at M2.
Is there any solution or rule that can be applied so that all packets (whether fragmentation is there or not) can transfer to M4 only not M3 (destination port rule is compulsory) ?
If i put only UDP rule not including destination port then there is no issue with both cases with/without fragmentation.
Waiting for your helpful reply.
Thanks,
Rahul Bhansali _________________ Rahul Bhansali |
|
Back to top |
|
|
truc Advocate
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Fri Feb 15, 2013 9:10 am Post subject: |
|
|
Not sure about this one, but may be you can try to mark every packet from those connection with connmark, then mark packets from these connections having --destination $laptop-ip and rule them from there? _________________ The End of the Internet! |
|
Back to top |
|
|
rahulbhansali24 n00b
Joined: 15 Feb 2013 Posts: 3 Location: India
|
Posted: Fri Feb 15, 2013 11:46 am Post subject: |
|
|
I did try with connmark, but only 1st fragment packet is getting marked not the subsequent fragmented packets. _________________ Rahul Bhansali |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|