LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-12-2004, 02:04 AM   #1
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Rep: Reputation: 15
Port/Protocol forwarding


Can someone explain port/protocol NAT forwarding to me? I don't see how or why it's used.

I understand IP Masquerading and such, but I don't get port/protocol forwarding.
 
Old 04-12-2004, 02:37 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
DNAT (port forward) is used to publish server behind linux firewall.
go to www.netfilter.org and read the docs for detailed info.
 
Old 04-12-2004, 02:54 AM   #3
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Because how the NAT functions you can't reach a server behind the NAT.
The only IP addresses that are known to the outside world is the official IP of the server.
To get to a server behind the NAT you would have to forward the request using port forwarding.

So when a request or packet comes to the server requesting a particular service/port the router changes destination IP and port to a local computer behind the NAT.
 
Old 04-12-2004, 03:38 AM   #4
Neorio
Member
 
Registered: Jun 2003
Distribution: Debian
Posts: 110

Original Poster
Rep: Reputation: 15
Thanks I get it now.

I've always wondered how my router worked using two PCs and both of the IPs stuck in the 192.168.1.0 range.
 
Old 04-12-2004, 11:35 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,669

Rep: Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892Reputation: 5892
Your PC's shouldn't have the same IP address i.e the last digit. 192.168.1.xxx will be different.
 
  


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
IPCHAINS port forwarding and IPTABLES port forwarding ediestajr Linux - Networking 26 01-14-2007 07:35 PM
Simple Port Forwarding Firewall - not forwarding MadTurki Linux - Security 14 04-09-2006 12:08 PM
Port 80 forwarding to port 22 with iptables zahoo Linux - Networking 3 02-22-2005 07:22 AM
Protocol 47 and Port Forwarding Asymmetric79 Linux - Networking 1 07-16-2003 01:41 PM
port forwarding and packet forwarding syrtsardo Linux - Newbie 2 07-03-2003 10:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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