Jump to content

Recommended Posts

Posted

Hi Folks

Just wonder if it would be possible to redirect all the host traffic to apache server running on bunny. I have installed apache and can browse it from host. I enabled port forwarding:

echo "1" > /proc/sys/net/ipv4/ip_forward

and added following iptables rules:

  1. iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 172.16.64.1:80
  2. iptables -t nat -A POSTROUTING -j MASQUERADE

Please excuse if I am doing something silly. I am a newbie.

regards, Mike

Posted

I also tried to achieve this by spoofing dns:

Enable port forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward


Configure iptables to forward udp traffic on port 53
iptables -t nat -A PREROUTING -i usb0 -p udp --destination-port 53 -j REDIRECT --to-port 53

Create hosts file - nano hosts, create entry 172.16.64.1   *

Run dnsspoof 
dnsspoof -f hosts

No luck either. Any help much appreciated.

regards, Mike
 

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.

  • Recently Browsing   0 members

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