Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more  

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Linux Operating System > Technical > Networks and Clusters
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-20-2005, 07:34 PM   #1 (permalink)
goldfish
Junior Member
 
Join Date: Jul 2005
Posts: 27
Default Linux and NAT configuration

I know you can set up Linux as a firewall/gateway/NAT, allowing you to share an Internet connection with several clients. But is it also possible to set it up so that you can have, for example, a web server behind the firewall, and allow users on the Internet to access the web server (much like Windows 2000 ICS and NAT) via the one public IP? Do you use ipchains?

Thanks for help in advance I am a newbie to linux.
goldfish is offline   Reply With Quote
Sponsored Links
Old 08-22-2005, 04:56 PM   #2 (permalink)
sandman
Junior Member
 
Join Date: Jul 2005
Posts: 35
Default

Hi,

Yes, this is easy with iptables, the successor to ipchains for 2.4+ series kernels. You just need simple code like :

echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/modprobe iptable_nat
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth1-j DNAT --to 172.16.16.10:8080

Hope this helps
sandman is offline   Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 06:24 AM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums