[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

09/01/2009 at 01:33AM PDT, ID: 24697258
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.1

How to Port Forward Using IPtables - my first try

Asked by Rigged in IP Tables/IP Chains, Linux Networking, Linux Network Security

Tags: port forward, iptables, debian

Hi

I am playing around with IPtables for the first time (on a Debian Lenny box) and I am having some trouble - It is a bit of a learning curb for me :P

What I want to achieve is making an internal application (on a local/internal Windows server) that has a web front-end externally available, so that my users can access it from anywhere with an internet connection.

The Debian box has two network interfaces - the one has a static IP that is externally accessible (tested and confirmed that the server is accessible on the IP) - eth1 with 196.211.X.X and the other interface is for my internal network eth0 on IP 10.47.134.11. The server who is running the web front-end I want made available is running on 10.47.134.36.

My IPTABLES doesn't have any rules set and it accepts all connections (for now while I am testing - I will be restricting access as soon as I got the port forwarding working).

I add the port FOWARD on IPtables as follows (I tried 2 different IPtables setups for the port fowards):
______________________________
iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 80 -j DNAT --to 10.47.134.36:80
iptables -A INPUT -p tcp -m state --state NEW --dport 80 -i eth1 -j ACCEPT
______________________________
iptables -A PREROUTING -t nat -i eth1 -p tcp --dport 80 -j DNAT --to 10.47.134.36:80
iptables -A FORWARD -p tcp -m state --state NEW -d 10.47.134.36 --dport 80 -j ACCEPT
______________________________

With both the setups above the results were the same when trying to access the the static IP on port 80 from a web browser --- "Network Timeout - The server at 196.211.X.X is taking too long to respond."

Is one of the port forward setups I used correct, or should I be setting the rules differently - Is there log files maybe that can give more info on the IPtables traffic - or is there something else wrong that I should be looking at?

THX in advance
Hendrik
 
Loading Advertisement...
 
[+][-]09/01/09 02:58 AM, ID: 25229869

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/01/09 04:57 AM, ID: 25230549

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/01/09 05:29 AM, ID: 25230825

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09/01/09 06:06 AM, ID: 25231127

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/01/09 06:18 AM, ID: 25231225

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: IP Tables/IP Chains, Linux Networking, Linux Network Security
Tags: port forward, iptables, debian
Sign Up Now!
Solution Provided By: eoke
Participating Experts: 2
Solution Grade: A
 
 
[+][-]09/02/09 12:16 AM, ID: 25238587

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 12:21 AM, ID: 25238614

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09/02/09 02:11 AM, ID: 25239130

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-91 - Hierarchy / EE_QW_3_20080625