Firewall: Redirect traffic to specific interface

Hello,

I am not expert of firewall/iptables command, I need some help to setup my OpenWRT firewall.

I have 2 outbound interfaces, one is wired WAN (eth5) and a 4G link (eth4).

I want to redirect the traffic that goes to a domain(ie., mydomain.com) to 4G interface(eth4). Maybe I am not right on that the firewall rely on the ip address, in case we can't use domain directly. Let's say we have the ip address of mydomain.com, how can I set the firewall to redirect the traffic to go through eth4?

BTW, can you recommend an firewall/iptables tutorial site for me?

Appreciated your help.
Thanks!
Alan

1 Like