Solved

Ubuntu 10 and IP Tables

Posted on 2012-04-10
3
215 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 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
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
Comment Utility
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 76

Assisted Solution

by:arnold
arnold earned 500 total points
Comment Utility
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
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.:

744 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now