Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-17-2007, 10:44 AM   #1
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,

Old 01-17-2007, 11:33 AM   #2
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
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.


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 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 > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:38 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration