LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 07-12-2015, 05:56 AM   #1
laptop4567
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Rep: Reputation: Disabled
Question Redirect all http request to my host


Hi every body! I'm newbie.
How do I redirect or block all http request except one or more domain name (like facebook.com, google.com, ect...)
I found this, but it redirect all, I can not add exception.
Code:
 iptables -t nat -A OUTPUT -p tcp -j DNAT --to 22.22.22.22
Can some one help me? Many thank

Last edited by laptop4567; 07-12-2015 at 05:59 AM.
 
Old 07-12-2015, 07:40 AM   #2
laptop4567
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
up!! hic. Some one can help me?
 
Old 07-12-2015, 09:49 PM   #3
laptop4567
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
up
 
Old 07-13-2015, 03:21 AM   #4
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
I can recommend using wpad.dat in your network, defining all proxy in it.
 
Old 07-13-2015, 05:15 AM   #5
laptop4567
LQ Newbie
 
Registered: Jul 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by voleg View Post
I can recommend using wpad.dat in your network, defining all proxy in it.
Thank you so much. But how to do it? Can you explain in detail? Sorry for my ignorance
 
Old 07-13-2015, 05:29 AM   #6
voleg
Member
 
Registered: Oct 2013
Distribution: RedHat CentOS Fedora SuSE
Posts: 354

Rep: Reputation: 51
Dig google, please. It is a lot of stuff. Easy to do then.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] redirect http request to an ftp server x201s Linux - Server 7 06-09-2012 02:24 PM
How to redirect http request in squid ? gardenair Linux - Networking 2 01-11-2011 12:14 AM
redirect https request to http after user authentication r.r.vishwanath@gmail.com Linux - Newbie 1 01-31-2009 11:42 AM
host unreachable when making http request hradtke Linux - Networking 2 05-27-2007 10:25 AM
apache: http redirect for any request going to www.foo.com/* psychobyte Linux - Software 1 04-11-2005 05:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration