Solved

Ubuntu 10 and IP Tables

Posted on 2012-04-10
3
222 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
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

733 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