Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Is it possible to redirect ... www.whatever.com to a file on the local drive... for example, if they went to go to this particular website, instead of the page showing in the browser, a picture saying this website is off limits would appear in the browser?????
you could do this with iptables easily, let's say you dont want computers on your network to access whatever.com, i'd do an nslookup on whatever.com and lets say the ip of whatever.com is 188.8.131.52, here is what your iptable rule could look like:
this will forward any incomming packets that are bound for 184.108.40.206 to 192.168.x.x ,if you have a web server running on 192.168.x.x then you can display whatever you want. if im wrong, someone correct me
this will forward any incoming packets that are bound for 220.127.116.11 to 192.168.x.x ,if you have a web server running on 192.168.x.x then you can display whatever you want.
I have tried this rule but not able to run this command with argument PREROUTING and --dport.
I am getting error like this
Bad argument `PREROUTING'
Try `iptables -h' or 'iptables --help' for more information.
and plz also specify me that how ant I flush this rule if applied then.
I want to redirect mail.google.com to mail.aspl.in in my network.
Thanx in advance......
Last edited by bhargavbhai; 08-11-2008 at 05:44 AM.
Reason: some corrections