LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 06-17-2009, 05:52 AM   #1
highllamas
LQ Newbie
 
Registered: Nov 2006
Distribution: Ubuntu Edgy
Posts: 5

Rep: Reputation: 0
Redirect outgoing http requests with IPtables


Hello.
I have searched along google but this thing looks really chaotic.

I just want to redirect some outgoing urls (like torrent sites for example) to a default page, for example 127.0.0.1/deny.html I would like to do it via iptables, no proxy servers or software. Is that possible?

I have managed to make all outgoing connections to one ip to be dropped by iptables with the command:

ipatbles -A OUTPUT -d [IP] -j DROP

But when i type a url instead of [IP], the iptables converts to ip automatically.
Also i coundn't get redirection working.

Thanks,
Dennis
 
Old 06-17-2009, 08:07 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
This may help you...

http://www.linuxquestions.org/questi...esfqdn-342378/
 
  


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
How do you properly redirect all web client requests from http to https? mehoggan Linux - Server 4 06-02-2009 03:49 AM
redirect all http requests to a different squid proxy server r2d2#jedi Linux - Networking 1 05-27-2009 12:31 AM
http relay - tracking http requests wastingtime Linux - Server 2 04-28-2009 06:05 PM
redirect some http requests to port 443. FMH Linux - Software 5 09-17-2007 08:19 AM
How can I redirect all requests for 1 ip to a different IP? with iptables abefroman Linux - Networking 1 08-31-2005 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:15 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