Solved

hot to open ports to opensuse 11.4

Posted on 2013-11-29
8
939 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 1

Author Comment

by:rafaelrgl
Comment Utility
i can connect with the same network normally, but when it's outside is then blocked. just don't know why.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 21

Expert Comment

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

Author Comment

by:rafaelrgl
Comment Utility
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
Comment Utility
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
Comment Utility
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
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.
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:
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…

743 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

17 Experts available now in Live!

Get 1:1 Help Now