LinuxQuestions.org
Review your favorite Linux distribution.
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, 11: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, 12:33 PM   #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, 02: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


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


All times are GMT -5. The time now is 05:07 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration