Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
accessing Intranet web server from extranet (outside the lan)
Hi all!
IS it possible for me to make my intranet pc (192.168.0.1) to act as
web server for internet access, if possible how can i do it,
now i am using linux box as gateway with iptables configured,
i think it is possible with iptables, but i dont know how to do it,
can any one help me out
can you clarify what you're after a bit more... a webserver is a machine that provides webpages to remote internet users, is that what you mean? that'd be apache...
also please use a useful thread title "hi" is of no use whatsoever, thanks.
My basic requirement is,i have one linux gateway connected with DSL and that gateway have two ethernet cards,
one is for Static IP provided by ISP
another one is having LAN ip
In gateway i am using squid as proxy in port 3128
Now few of my users will be going outside office and want to browse our intranet web server carries required info.
After going through some documents and other mates help, i came to know that we can do it by port forwarding,
Then i tried the following
/sbin/iptables -t nat -A PREROUTING -p tcp -i eth0-d mystaticip --dport 80 -j DNAT --to-destination mylanip:80
but when i will trying to connect from outside my lan
i am getting my proxy error messages
you would still need to enable ip forwarding in the kernel
echo 1 > /proc/sys/net/ipv4/ip_forward
personally i would suggest using a firewall generator such as firestarter, which is available from sourceforge.net, it will create a functional firewall for you, and also deal with ip forwarding.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.