Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
11-08-2004, 03:54 AM
|
#1
|
LQ Newbie
Registered: Oct 2004
Posts: 23
Rep:
|
cant access web server behind NAT/firewall
Hi,
I have installed Debain 3.0 with IpMasq package to use it as my ADSL connection as internet gateway. I installed later firestarter as firewall.
now my problem is that i have one webserver running inside my interanet with global IP. Now i cant access this when i try to access from outside.
can any body help me.
i specified in "firestarter" dyanamic rules that open TCP services for this global IP machine on port 80.
Thanks in Advance
|
|
|
11-08-2004, 06:44 AM
|
#2
|
Senior Member
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188
Rep:
|
u have like this network, right?
web_server ---- linux (firewall) --- internet
if it is so,u need port forwarding, not opening port.
i dont know about firestar. u can check your script. the following iptables rules will forward tcp 80 port to internal web server:
iptables -t nat -I PREROUTING -i eth_ext -p tcp --dport 80 -d public_ip_of linux -j DNAT --to local_ip_of_web_server
it depends how your firewall is built. u must also allow tcp 80 in FORWARD chain:
iptables -I FORWARD -d local_ip_of_web_server -p tcp --dport 80 -j ACCEPT
|
|
|
11-08-2004, 07:20 AM
|
#3
|
LQ Newbie
Registered: Oct 2004
Location: Belgium
Distribution: Gentoo
Posts: 3
Rep:
|
Keep in mind that a lot of internet providers automagically BLOCK all incoming ports below 1024.
Since you say you try to connect to port 80 on your firewall, I suggest you add a rule in your iptables that port 8080 forwards to port 80 on your LAN-webserver.
|
|
|
11-10-2004, 11:43 AM
|
#4
|
Senior Member
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380
Rep:
|
Remember you also probably need to tell the modem/router to port forward port 80 to the relevant internal IP
|
|
|
All times are GMT -5. The time now is 02:47 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|