femindharamshi10
Posts: 102
Joined: Thu Jan 07, 2016 1:28 pm

forward domains

Sat Mar 26, 2016 5:02 am

i set up a closed cloud.
now if some device connects to Rpi's Access Point and opens the browser and inputs any ipv4 ip there then it gets redirected to 192.168.69.1

i did that using

Code: Select all

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination 192.168.69.1:80
will i lose these settings on reboot ?

now if user enters some domain, then how do i redirect him to 192.168.69.1

Return to “General discussion”