Posted: Tue Jan 15, 2019 17:50 Post subject: Redirect tarffic for a specific private IP
Hello, I am new to dd-wrt and networking in general, and was needing a little help. I am trying to redirect traffic for a specific IP on my network. An example of what this might be is: 192.168.1.38 tries to connect to Google.com but is redirected to Yahoo.com.
I was originally ARP spoofing the IP and intercepting and manipulating the DNS packets. However, this requires my computer to always be on, and if I want to perform this on more computers it would clog up the network.
Does dd-wrt have an option or tool that enables me to achieve what I am trying to do?
Joined: 18 Mar 2014 Posts: 12917 Location: Netherlands
Posted: Wed Jan 16, 2019 10:16 Post subject:
You can not redirect to a url but you can redirect to a specific IP address
(it is possiblle with loading ipset via entware)
Redirecting to a specific IP address is done via firewall rules like
iptables -t nat -A PREROUTING -s 192.168.1.38 -d [orginal IP address] -j DNAT --to-destination [substituted ip address]
But first read the forum rules, per the forum rules always state your router model, and used firmware build.
Then state your problem and what you already tried to solve your problem.
That is so that we can give you a better advice.