FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 10-29-2010, 04:01 PM
Dan Carl
Default How to access one machine behind iptables, on different subnet?

On 10/29/2010 3:22 AM, Rudi Ahlers wrote:
> Hi all,
> I wonder if someone can help me with this: The setup is as follows:
> - wireless ADSL modem, with DHCP pool on 192.168.100 - 192.168.200
> - Linux firewall RED interface
> - Linux firewall GREEN interface.
> There are some normal LAN clients behind the Linux firewall's GREEN
> interface, which can all access each other's shared services and also
> all the clients behind the RED interface. i.e. those clients connected
> to the ADSL wifi APP directly.
> Now I want the clients on the "outside" to connect to one specific
> host on the inside, behind the GREEN interface, on IP
> How would I do that? I know I can do this with port fowarding, but
> need many ports forwarded. How do I give full access to all ports on
> this IP, instead of forwarding every port? Does that make sense?
Not much of a firewall if you allow everything, unless you're limiting
the "outside" IPs.

Other solutions would be to allow either a range of ports.
--dport 5000:5500
--dport 1024:65535 (all unassigned ports)

or define the ports you wish to allow with a variable
FORWARDPORTS="1024 1025 1026"

even a hybred like this should work
FORWARDPORTS="1024 1025 1026 5000:5500"
Then call the variable in your forward rules.


CentOS mailing list

Thread Tools

All times are GMT. The time now is 08:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org