Solved

hot to open ports to opensuse 11.4

Posted on 2013-11-29
8
1,174 Views
Last Modified: 2013-11-29
Hi, i am an starter in linux and need to make sure the port 3389 is open for outbound connection, because i want to use remote desktop to connect to one server outside of our network and i think the firewall on opensuse is bloking the port 3389. Can you guys help me step by step on the command line i need to execute on the linux. i will count on you all.
0
Comment
Question by:rafaelrgl
8 Comments
 
LVL 30

Expert Comment

by:IanTh
ID: 39685810
The procedure for opening ports in the Linux firewall "iptables" is relatively simple.

 First, open a command-line terminal.  In most systems, you can usually find this in your 'Applications' menu under the 'System Tools' section.

 Once you have a terminal open, you have to obtain root access to change firewall settings.  Do this by typing:


su -


 You will be prompted for your root password.

 In the following examples, substitute the port # you want to open for the 12345 in the command.

 If you want to open an incoming TCP port, type the following:


iptables -I INPUT -p tcp --dport 12345 --syn -j ACCEPT


 If you want to open a UDP port (perhaps for DHT in Tixati), type the following:


iptables -I INPUT -p udp --dport 12345 -j ACCEPT



 After you are done opening ports in your firewall, you can save your changes so they will be applied when you restart your computer by typing the following command:


service iptables save
0
 
LVL 19

Expert Comment

by:xterm
ID: 39685947
There is no default outbound firewall in OpenSUSE, but just to be sure, please run and paste here the output of the following command, and we can tell you if 3389 is restricted in any way:

/sbin/iptables -nL
0
 
LVL 21

Accepted Solution

by:
Mazdajai earned 500 total points
ID: 39685961
Is the server acting as a firewall in your environment? You mean inbound poty?

To open tcp/3389 with iptables:
iptables -I INPUT -p udp --dport 3389 -j ACCEPT

Open in new window


I would first make sure you can connect within the same network beforehand.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 1

Author Comment

by:rafaelrgl
ID: 39686270
i can connect with the same network normally, but when it's outside is then blocked. just don't know why.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39686283
"Outside" as in outside the firewall / corporate network?
0
 
LVL 1

Author Comment

by:rafaelrgl
ID: 39686294
what's the command i should execute on the linux to make the firewall open for outbound connections. like example:

i can access from outside the network the server normally using remote desktop, and also i can use one computer inside the network to access another computer inside the network using remote desktop, but what i want is to use one computer inside the network to access another computer outside the network. it's like the outbound connection is block but incumming connection is open.
0
 
LVL 1

Author Comment

by:rafaelrgl
ID: 39686298
lets say i have network 192.168.0.X and this network is the company network. So using this example.

I can access another computer using remote desktop connection using computer 192.168.0.1 to 192.168.0.X

I can access computer inside the network 192.168.0.20 using my home computer that is outside the network.

I can't access another server outside the network using computer 192.168.0.20 to access another computer on the internet. This one here does not work.
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39686307
See my previous thread on how to open tcp/3389 for inbound connection.

You should check with the network guys to see if there an ACL configured on the firewall side.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Last article we focus in how to VMware: How to create and use VMs TAGs ā€“ Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
In this article, I will show you HOW TO: Suppress Configuration Issues and Warnings Alert displayed in Summary status for ESXi 6.5 after enabling SSH or ESXi Shell.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four vā€¦

830 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