I want to be able to redirect a host in my Lan to an specific ip address and port. I can achieve one thing which is that only my desired host can access the ip address, but I can't get the user to redirect when they type something in their url bar. I will show you the steps I've taken to accomplish this
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A PREROUTING -p tcp --dport 5000 -j DNAT --to-destination 192.168.2.3:5000
iptables -t nat -A POSTROUTING -j MASQUERADE
#The address below is the host I'm redirecting
iptables -t nat -A PREROUTING -s 192.168.2.14 -p tcp --dport 5000 -j DNAT --to-destination 192.168.2.3:5000
Please let me know how can I accomplish this.