Redirect tarffic for a specific private IP

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
jetkid
DD-WRT Novice


Joined: 14 Jan 2019
Posts: 1

PostPosted: Tue Jan 15, 2019 17:50    Post subject: Redirect tarffic for a specific private IP Reply with quote
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?
Sponsor
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12917
Location: Netherlands

PostPosted: Wed Jan 16, 2019 10:16    Post subject: Reply with quote
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.

Maybe we can solve your problem in a different way Smile

_________________
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
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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 cannot attach files in this forum
You cannot download files in this forum