LinuxQuestions.org
Visit Jeremy's Blog.
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 06-13-2005, 03:00 AM   #1
CJ_Grobler
LQ Newbie
 
Registered: May 2005
Location: JHB, South Africa
Posts: 7

Rep: Reputation: 0
iptables


Hi

I’m using iptables to create a firewall for a VPN.

Ex.

196.41.21.100 tries to connect to my server from an external ip to my 196.22.176.76 external ip.

How do I route them to my internal ips in the intranet.

I’ve tried DNAT but it can only route if it knows the ip, and obviously external users wont be able to see my internal ips.

The problem is, if I get a connection from an external source that connect to my external ip I need to route the connection to a mail server or a browsing server...

Ex mailing server->192.168.1.85

Please tell me if there is a straightforward command...

Any help would be much appreciated.
 
Old 06-14-2005, 06:55 AM   #2
demian
Member
 
Registered: Apr 2001
Location: Bremen, Germany
Distribution: Debian
Posts: 303

Rep: Reputation: 30
Re: iptables

Quote:
Originally posted by CJ_Grobler

I’ve tried DNAT but it can only route if it knows the ip, and obviously external users wont be able to see my internal ips.
No, but you know where to route what. smtp connections: [ext_ip]:25 are routed to your mail server 192.168.1.85, http connections are routed to your web server, etc....

It's called portforwarding, btw.
 
  


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
An error occured getting IPtables status from the command /etc/rc.d/init.d/iptables s CrazyMAzeY Linux - Newbie 10 08-12-2010 05:25 AM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 02:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
iptables book wich one can you pll recomment to be an iptables expert? linuxownt Linux - General 2 06-26-2003 04:38 PM
My iptables script is /etc/sysconfig/iptables. How do i make this baby execute on boo ForumKid Linux - General 3 01-22-2002 07:36 AM

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

All times are GMT -5. The time now is 12:46 PM.

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