kanalia Posted March 17, 2017 Posted March 17, 2017 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: iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 172.16.64.1:80 iptables -t nat -A POSTROUTING -j MASQUERADE Please excuse if I am doing something silly. I am a newbie. regards, Mike Quote
kanalia Posted March 17, 2017 Author Posted March 17, 2017 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 Quote
kanalia Posted March 20, 2017 Author Posted March 20, 2017 I figured it out, the interface must be specified when using dnsspoof. regards Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.