LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-20-2005, 01:38 PM   #1
omlex
LQ Newbie
 
Registered: Jul 2003
Posts: 22

Rep: Reputation: 15
Port 80 redirection


Hi,

I've been configuring this firewall for a week now and it seems I cant get it right.

I have iptables running on my server. I want my clients to use port 8080 for their browsing rather that regular port 80. What I want to accomplished is to block all media video streaming that use port 80. Many streaming protocols run on port 80 so firewall cant tell them apart from web.

My problem now, I cant redirect http to use port 8080. How will I make my firewall uses port 8080 instead of 80?

Take note: I'm not running squid and this is not a webserver, just proxy firewall.

Below is the one working right now.

-A FORWARD -i eth1 -o eth0 -p tcp -m tcp --dport 80 -j ACCEPT


Everytime I changed the "dport 80" to 8080, my clients can get out. What seems to be the problem? Please help.
 
Old 02-20-2005, 03:22 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
You will need to switch to squid for this. If you change it to 8080 then all of the servers will need to be running on port 8080 which would mean contacting every webserver owner in the known world and beyond and ask them to change it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Port Redirection JonChristmas Linux - Networking 1 09-04-2004 03:19 AM
port redirection for squid htm Linux - Software 0 03-20-2004 08:59 AM
Port redirection on FreeBSD zemo Linux - Networking 1 10-15-2003 07:56 AM
How to sniff port redirection shawnzhou888 Linux - Networking 0 07-18-2003 02:31 PM
port forwarding / redirection Ratclaws *BSD 1 02-23-2003 10:13 AM


All times are GMT -5. The time now is 10:39 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration