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


Closed Thread
  Search this Thread
Old 01-19-2004, 03:01 PM   #1
bryan1138
LQ Newbie
 
Registered: Jan 2004
Location: Louisville, KY
Posts: 10

Rep: Reputation: 0
LINKSYS vs LINUX Router?


I have been trying to setup iptables for forwarding my external public to my internal private ip's. Everything works fine except my internal private ip cannot browse to my web server. I was told that this will not work in Linux. Why would a LINKSYS router's nat work better than a Linux nat?

There has to be a way. Here is my active file with my private ip edited out.

# Generated by iptables-save v1.2.6a on Mon Jan 19 13:00:25 2004
*nat
:PREROUTING ACCEPT [98:8294]
:POSTROUTING ACCEPT [23:1516]
:OUTPUT ACCEPT [9:1091]
[16:768] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 80 -j DNA
T --to-destination 10.10.10.6:80
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 53 -j DNAT -
-to-destination 10.10.10.6:53
[1:74] -A PREROUTING -d {Public IP} -i eth1 -p udp -m udp --dport 53 -j DNAT
--to-destination 10.10.10.6:53
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 143 -j DNAT
--to-destination 10.10.10.6:143
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p udp -m udp --dport 143 -j DNAT
--to-destination 10.10.10.6:143
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 110 -j DNAT
--to-destination 10.10.10.6:110
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 25 -j DNAT -
-to-destination 10.10.10.6:25
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 3389 -j DNAT
--to-destination 10.10.10.2:3389
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 20:21 -j DNA
T --to-destination 10.10.10.6:20-21
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 10000 -j DNA
T --to-destination 10.10.10.6:10000
[0:0] -A PREROUTING -d {Public IP} -i eth1 -p tcp -m tcp --dport 30022 -j DNA
T --to-destination 10.10.10.6:30022
[43:2851] -A POSTROUTING -o eth1 -j SNAT --to-source {Public IP}
COMMIT
# Completed on Mon Jan 19 13:00:25 2004
# Generated by iptables-save v1.2.6a on Mon Jan 19 13:00:25 2004
*mangle
:PREROUTING ACCEPT [3512:403825]
:INPUT ACCEPT [1253:124463]
:FORWARD ACCEPT [2259:279362]
:OUTPUT ACCEPT [1457:194805]
:POSTROUTING ACCEPT [3723:475257]
COMMIT
# Completed on Mon Jan 19 13:00:25 2004
# Generated by iptables-save v1.2.6a on Mon Jan 19 13:00:25 2004
*filter
:INPUT ACCEPT [1253:124463]
:FORWARD ACCEPT [2259:279362]
:OUTPUT ACCEPT [1457:194805]
COMMIT
# Completed on Mon Jan 19 13:00:25 2004
 
Old 01-19-2004, 03:53 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Don't post more than one thread for the same question, please. Use this one: http://www.linuxquestions.org/questi...hreadid=136180
 
  


Closed Thread


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
linksys router in linux reefa Linux - Networking 7 03-14-2005 02:19 AM
linux slow behind linksys router pfunk Linux - Networking 8 02-28-2005 06:43 PM
running a linksys router with linux behind it HKJGN Linux - Networking 17 02-19-2005 11:56 PM
linux network with linksys router iaredam Linux - Networking 3 08-22-2003 07:58 PM
Linux box can't see linksys router mjohns63 Linux - Networking 0 07-23-2003 11:51 PM

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

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