Cannot get source based routing to work.

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
John King
DD-WRT Novice


Joined: 09 Nov 2018
Posts: 2

PostPosted: Fri Nov 09, 2018 9:52    Post subject: Cannot get source based routing to work. Reply with quote
I have an interface created via openvpn. This is called tun_vpn.

I have tried to enable source based routing in two ways. Both fail in the same way. I can ping and I cant send udp packets to open an outgoing connection but as soon as the second udp packet comes in the flow stops. With TCP I can see syn packets sent, and only the ack is received by the other side. All other packets are blocked by DDWRT until the close comes from the my computer.

The second way was to use the same IP rule and mark the packets with the fwmark. This only happens with the broadcom hardware
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12875
Location: Netherlands

PostPosted: Fri Nov 09, 2018 10:54    Post subject: Reply with quote
I agree with @jxm (I ususally do).
But to take a long shot: disable Shortcut Forwarding Engine on setup page

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
John King
DD-WRT Novice


Joined: 09 Nov 2018
Posts: 2

PostPosted: Fri Nov 09, 2018 19:18    Post subject: Reply with quote
Thanks that worked for tcp.

I didn't want to post iptables nor ip rules but the gist is;
ip rule add from ip table xxx
for source routing, which is the same as
iptables -t mangle -A PREROUTING -s ip -j MARK --set-mark xxx
and for both creating the routing table xxx.

Anyhow thanks for that.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
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
You can attach files in this forum
You can download files in this forum