LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 01-17-2007, 10:44 AM   #1
kamafeu
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Rep: Reputation: 0
Internal network connecting to external IP address


hi, i have a small network setup with two computers running Fedora Core 5, one is my home gateway and the other one my workstation, i've setup NAT and MASQUERADE, so i can access the internet through the gateway and everything is working fine, but now im running some services in my workstation and had to setup port forwarding so i could reach them from outside, it works good but i cant access those same services from the internal network.

Can someone tell me how can i allow the internal network to access the public IP address of gateway and be forward back the same way as external connections are?


thanks in advance,

kamafeu
 
Old 01-17-2007, 11:33 AM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
Sounds like you need to add a rule to allow all LAN hosts to access your port. For example, to allow LAN hosts access to your web server port 80:

iptables -A INPUT -s $LAN -d $NIC1 --dport 80 -j ACCEPT
iptables -A OUTPUT -s $NIC1 --sport 80 -d $LAN -j ACCEPT
 
Old 01-21-2007, 01:23 PM   #3
kamafeu
LQ Newbie
 
Registered: Jan 2007
Posts: 2

Original Poster
Rep: Reputation: 0
thx for the reply, i managed to do what i wanted by using the /etc/hosts file.
 
  


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
web hosting with an internal and external ip address mindhacker Linux - Newbie 7 11-28-2006 09:38 PM
IP forwarding issue -- IP address of internal network menonrr Linux - Networking 4 09-14-2004 07:46 AM
Detecting the external IP address of an internal network: JohnLocke Linux - Newbie 17 07-22-2004 04:08 PM
SuSe 7.0 not communicating with Network (internal or external) jmnovak Linux - Networking 1 02-27-2002 11:52 AM
accessing box from internal network but not from external JereBear Linux - Networking 12 05-12-2001 01:12 AM

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

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