Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
traffic shaping of locally generated packets
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rahulbhansali24
n00b
n00b


Joined: 15 Feb 2013
Posts: 3
Location: India

PostPosted: Thu Feb 21, 2013 11:59 am    Post subject: traffic shaping of locally generated packets Reply with quote

Hi,

I have PC (PC1) with two outgoing interfaces, and a laptop (L1) that can be reachable through both the interfaces of PC1.

I want to control the traffic that is locally generated on PC1 for L1, by dividing traffic among both the interface destined for L1.

I have done marking in OUTPUT chain, but no packet is going out for L1 from PC1.

ip6tables -t mangle -A OUTPUT -p icmp6 -j MARK --set-mark 0x2
ip -6 rule add fwmark 0x2 table 12
ip -6 route add <L1-IP> dev eth0 table 12

ping6 <L1-IP>

After all this, I am not able to send ping6 traffic. If I remove the marking rule then only ping works.
Similar way, I want to classify more packets according to protocol and ports.

Please help me on this.
_________________
Rahul Bhansali
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Thu Feb 21, 2013 12:49 pm    Post subject: Reply with quote

I suppose you want to set routing, using "-m random" - see example.

Also see traffic shaping.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
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