Fedora Linux Support Community & Resources Center
  #1  
Old 4th March 2008, 12:05 PM
tamilnandhu Offline
Registered User
 
Join Date: Mar 2008
Posts: 2
Iptables configuration issue..

HI,

I am running Fedora Core6 as a gateway for my LAN with two NIC

the setup is,

Static IP[xx.xx.xx.xx]
|
|
eth0[xx.xx.xx.xx]
|
FC 6
|
eth1[192.168.10.1]
|
|
LAN Clients[192.168.10.0/24] and one server has 192.168.10.10 as IP and 192.168.10.1 as gateway


I port forwarded my server through the static IP with Iptables as,

#iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8080 -j DNAT --to 192.168.10.10:8080
#iptables -A FORWARD -p tcp -d 192.168.10.10 --dport 8080 -j ACCEPT

But it doesnt satisfy my full need. I can acessmy server from outside [ i mean internet] as http://xx.xx.xx.xx:8080/ .
From LAN i can access through only http://192.168.10.10:8080/ but i need to access http://xx.xx.xx.xx:8080 from LAN too.

Please give me a solution to achieve this. I searched through net, but not able to find a solution.

So please give me a solution.

Thanks,
Nandhu.
Reply With Quote
  #2  
Old 4th March 2008, 01:02 PM
meowdin Offline
Registered User
 
Join Date: Feb 2008
Location: HK
Age: 33
Posts: 196
wow , you have a static ip ! what a luxury!

anyway if you type in your browser http://xx.xx.xx.xx:8080 what does it give u?

I think it should direct you to this same machine right?

r u running different service btw http://xx.xx.xx.xx:8080 and http://192.168.10.10:8080/ ?
Reply With Quote
  #3  
Old 4th March 2008, 01:33 PM
tamilnandhu Offline
Registered User
 
Join Date: Mar 2008
Posts: 2
Hi,

When i access http://xx.xx.xx.xx:8080 from my 192.168.10.10 server, it gives,"the page cannot be displayed". but from internet, i mean, frok outside i can acccess the page.
Reply With Quote
  #4  
Old 4th March 2008, 01:58 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
See the NAT HOWTO: http://www.iptables.org/documentatio...-HOWTO-10.html
Reply With Quote
Reply

Tags
configuration, iptables

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem saving IPTables configuration irc0x00 Servers & Networking 3 16th June 2007 08:11 PM
is this iptables configuration enough for a home pc fedoradebut Security and Privacy 7 2nd April 2006 01:34 AM
Easy iptables configuration. aje Using Fedora 8 30th December 2005 11:39 AM
iptables auto-configuration nemesys Servers & Networking 1 20th November 2005 01:41 AM


Current GMT-time: 11:22 (Tuesday, 22-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat