Jump to content

How to redirect a external IP to 172.16.42.1


daniboy92
 Share

Recommended Posts

I'm investigating many ways to spoof a web, but unfortunately dnsspoof it's outdated... It only works with an old browser or webs that i don't have any interest to spoof...

One day, Darren writes this:

These limitations could potentially be overcome with iptables rules to redirect the IP traffic rather than the DNS queries. Meaning if example.com is cached as 93.184.216.119 and you reroute that IP to 172.16.42.1 it wouldn't matter if the browser has DNS cached or not.


This is the link:
https://forums.hak5.org/index.php?/topic/33101-dnsspoof-success-rate/#entry247268

I don't know how to do this, i'm am a noob with IP Tables, i don't have how to do this...

Hope someone can help me.

Sorry for bad english.

Link to comment
Share on other sites

root@Pineapple:~# iptables -t nat -A PREROUTING -p tcp -dport 80 -j DNAT to-dest

ination 172.16.42.1

Bad argument `80'

Try `iptables -h' or 'iptables --help' for more information.

This is the results of:

iptables -t nat -A PREROUTING -p tcp -dport 80 -j DNAT to-destination 172.16.42.1

I can't set the IPTables rule...

Edited by daniboy92
Link to comment
Share on other sites

That's odd, some of the "taks" (as Darren call them) are missing. Try:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 172.16.42.1

And of course change the "-A" to "-D" to drop the rule.

Edited by fringes
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...