LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 02-25-2008, 08:34 PM   #1
Frakk
Member
 
Registered: Oct 2007
Posts: 33

Rep: Reputation: 2
Forwarding ports.


Hi,
there is this sserver I might have to take care of in the next days, Iīve checked it briefly and could not find where port forwardring rules are being defined? (they are not in iptablesī conf. for instance)

I dont believe Squid has such forwarding-incoming-connections functionality, does it?

The remote assistance connections are coming through the VPN... may that be reason they donīt need their ports being redirected ?

This is a Fedora 5 server acting as a router, running iptables, squid and SElinux, with an ASDL connection.
It does not have any X server or apps, so I basically checked the conf files I am aware of.

Thanks in advance.
 
Old 02-27-2008, 05:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it ould depend on what you are really referring to, but this would generally be nothing at all to do with squid. it would have to be iptables, but there are many places you could put iptables config if you wanted to. if you do an "iptables -L" are they shown there?
 
Old 02-27-2008, 05:41 AM   #3
senramesh
LQ Newbie
 
Registered: May 2007
Posts: 21

Rep: Reputation: 15
It can be done using the iptables. You can type it in command prompt and give /etc/init.d/iptables save to make the settings permanent.

The below example will redirect the request from 80(httpd) to the 8080(tomcat) internel. To the outer world it will look as if it was running from 80.

iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A OUTPUT -d your hostname -p tcp --dport 80 -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -d your hostname -p tcp --dport 80 -j REDIRECT --to-ports 8080
 
Old 02-28-2008, 02:23 PM   #4
Frakk
Member
 
Registered: Oct 2007
Posts: 33

Original Poster
Rep: Reputation: 2
Hi, thanks for your input.

yeah, I know the usual way to do this kind of thing, but in this case I was wondering if it could have been set-up in some other way.

That -L option seems to be what I need to see if there are other rules I didnīt find.

BTW, let me ask you again if a remote site connected through some VPN *could* initiate connections to listenning services in the LANīs PCs without ports being explicitely redirected from the router to the PCs.

Regards.
 
  


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
Forwarding Ports cicca82 Linux - Networking 11 12-06-2007 10:16 AM
Ports not forwarding with pf linuxpyro *BSD 1 02-16-2006 06:09 PM
Iptables not forwarding ports pIscIs Linux - Networking 9 05-02-2005 07:56 AM
Forwarding ports Xenocide Linux - Networking 0 12-29-2003 05:12 PM
forwarding mail ports ewlnxnewB Linux - Networking 2 12-04-2003 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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