Solved

Ubuntu 10 and IP Tables

Posted on 2012-04-10
3
225 Views
Last Modified: 2012-04-19
My ubuntu 10 server is currently configure to only accept port 80 requests from a specific IP address.  How do i change it to allow all port 80 (inside & outside) requests through?
0
Comment
Question by:deklinm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 78

Accepted Solution

by:
arnold earned 500 total points
ID: 37830034
Ubuntu use sfw as the graphical interfaces manage iptables.
Iptables -L
To get the current Iptables rules.
iptables -I INPUT 5 -p tcp -m tcp --dport 80 -j ACCEPT
Is the raw rule to allow port 80 connection from outside the system.
You may have to make a port forward rule on your external router to the Ubuntu system.
0
 

Author Comment

by:deklinm
ID: 37838472
I have stopped shorewall
Then i ran iptables -I INPUT 5 -p tcp -m tcp --dport 5632 -j ACCEPT

The server is not accepting connections
0
 
LVL 78

Assisted Solution

by:arnold
arnold earned 500 total points
ID: 37838556
how does shorewall relate to your system?

I.e. is it the front door and you want to grant access to a room within the house?

please post the output of iptables -L --line-numbers from the system to which you want to grant access.
Then you have to still configure the external router/firewall to pass traffic on a specific port to a specific system/port on the inside

Could you also run
lsof -i:5632
does it report that there is a process that is listening on that port?
0

Featured Post

Monthly Recap

May was a big month for new releases from Linux Academy! Take a look at what our team built recently in our blog. You can access the newest releases from our blog.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question