Routing Traffic to a Virtual Network Interface
Hello all,
I am currently working on a project in my university to enhance quality of VoIP communications in a WLAN (I'm not going further with details, not the purpose of this post). For this work, I am looking for a way to route specific traffic from a physical interface to virtual interface. Not all the traffic must be forwarded (actually just the RTP traffic). The virtual interface should perform some actions on the packets received, before sending them to an other interface. eth0 --> eth0:0 --> eth1 The problem is that I don't know how to select the packet to be transmitted from eth0 to eth0:0. Many thanks for your precious advices and idea ! |
Are you using NAT? What are the IP addresses of your interfaces?
Your question does not really make a lot of sense, can you be more specific? Also, run these commands and post the output here: Code:
ifconfig |
I am not using NAT, and not even set up the virtual interface yet.
I just have one simple internet connection, linked to my eth0 interface. I am more looking for general tips to start conceiving the implementation. Code:
ifconfig Code:
ip route : I want my device to act like an intelligent bridge. It will receive packets on the eth0 interface. If the packet is an RTP flow, with a specific IP destination address, it will be sent to a virtual network interface. if not, the packet will be delivered normally. In the virtual interface, all the RTP frames will be aggregated into one big multiplexed frame, before being sent to the second network interface. Thanks for your patience guys !! |
Quote:
Quote:
|
May be something like this
/sbin/iptables -t nat -A PREROUTING -p udp --dport 10000:20000 -i eth0 -j DNAT --to 192.168.0.2 where 192.168.0.2 is the address of the address of eth0:0 |
All times are GMT -5. The time now is 06:07 PM. |