LinuxQuestions.org
Review your favorite Linux distribution.
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 09-08-2004, 09:50 AM   #1
swmok
Member
 
Registered: Jul 2003
Posts: 152

Rep: Reputation: 30
Pls. Help -- How to block a client by iptables?


Hello:

I used the following command to block the client 10.100.129.1

If the client go to a web site e.g www.hotmail.com, it will go to the homepage of the firewall.

/sbin/iptables -t nat -A PREROUTING -i eth1 -p tcp -s 10.100.129.0 --dport 80 -j REDIRECT --to-port 80

The question is:

If the client goes to www.hotmail.com/abc, the client cannot go to the homepage of the firewall.

That task is:
The client goes to "www.xxxx.com" or "www.xxxx.com/xxx".
The firewall (NAT server) will redirect it to the homepage stored in the firewall.

Pls. HELP.
Thanks

MOK
 
Old 09-08-2004, 11:50 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
why don't you use squid proxy server instead?

iptables is not quite designed to handle urls ...

Last edited by ppuru; 09-08-2004 at 11:52 AM.
 
Old 09-08-2004, 02:14 PM   #3
TheIrish
Member
 
Registered: Oct 2003
Location: ITALY
Distribution: Debian, Ubuntu, Fedora
Posts: 137

Rep: Reputation: 15
Quote:
iptables is not quite designed to handle urls ...
even more, iptables shouldn't handle urls at all since it is too easy to trick it using unicode characters and stuff.
 
  


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
IPTables and PPTPD :S (to block or not to block) thewonka Linux - Networking 0 03-24-2005 06:58 PM
how to block internet only for one client pc phil.d.g Linux - Networking 5 12-09-2004 03:18 PM
how to block internet only for one client pc santoshdj123 Linux - Networking 1 02-20-2004 06:51 AM
iptables help!!! pls.... zaldyd Linux - Networking 3 07-15-2003 01:10 AM
IPtables Noob Help pls Phat420 Linux - Networking 6 03-11-2003 09:55 PM

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

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