Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 02-20-2005, 01:38 PM   #1
LQ Newbie
Registered: Jul 2003
Posts: 22

Rep: Reputation: 15
Port 80 redirection


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
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 68
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.


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 > Forums > Linux Forums > Linux - Security

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

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