you dont need iptables, you need policy routing check iproute2
ip rule add (your specific stuff) table XXX ip route add default via interface table XXX 2014/1/21 John Clark <[email protected]>: > I've been looking at various configurations of iptables, and I don't have a > clear idea on how to do the following: > > I have an application that sends UDP packets, and I would force the out bound > packets to be sent via a specific interface. > > For example, I have a satellite link for the out going packets, but a ground > link for the return packets. > > I have a program which works with a single link, and I'd like to have that > program unaware that the stream is being split in the kernel. > > I have seen mention of a 'tee' feature for iptable filtering, but that's not > quite what I want… since there is no need to duplicate the stream and send it > two different ways. > > The problem I have is thinking about such things as how 'arp' works, and that > if the satellite link sends an 'arp request', that interface will expect an > 'arp-response', but that will be returned via the ground link path… > > Somewhere in my memory, I recall this sort of setup for remote locations that > had a satellite down link, and a slow modem access for 'up link'. > > Any help would be appreciated. > > John Clark. > _______________________________________________ > openwrt-users mailing list > [email protected] > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users _______________________________________________ openwrt-users mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
