Sponsored Content
Operating Systems Linux Ubuntu Connecting to a remote server Post 302279274 by linuxjunkie on Thursday 22nd of January 2009 09:37:09 AM
Old 01-22-2009
Your router has got a build in firewall.
The firewall is set to allow connections from a pc on the local network to another pc on the local network. ( This is called forwarding ).


By default your ip firewall is set to deny incomming connections to your local network on some ports. the default ports are thos that are used by windows to connect to shared drives.

This is a very important security feature, if you disable these ports or allow traffic on these ports any one on the internet will be able to access your server if the find your public ip address.

Now if you had mail server on your local network and you wanted people to send mail to it on port 25 (SMTP) then you would set a rule in your firewall to allow incomming traffic on port 25 and to forward it to the internal mail server.

So you sepcify what port you allow traffic on and you specify that it can only go to one specific ip address.

Hope this helped
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Connecting to remote servers

Please advise, The previous thread asked about the automated transfer of files between two servers. The question is - is there any way of encrypting the password within the script or is it a matter of setting the permissions settings on the script so that it can only be executed and possibly... (1 Reply)
Discussion started by: rdbooth
1 Replies

2. Shell Programming and Scripting

connecting to remote db from unix script

Hi everybody, My bash script is trying to connect to a remote database using the 'sqlplus' binary.For this i set(export) the variable TWO_TASK to the value of database name excluding the dot extension part. Can anyone explain me what's the significance of this TWO_TASK variable while... (8 Replies)
Discussion started by: DILEEP410
8 Replies

3. Shell Programming and Scripting

Connecting to remote unix server using java?

I need help writing java code that can connect to a remote unix server, and run a script on that server. I have scoured the internet, but I have been unable to find proper documentation on how this can be accomplished. Any help is appreciated thanks. (1 Reply)
Discussion started by: developncode
1 Replies

4. Red Hat

How to know which application is connecting to a remote host

From a host A an application is trying to connect to host B. From firewall side I can see packets dropped coming from host A to host B. I've access to host A: how can I know which "application" is trying to connect to host B? Thanks, Marco (3 Replies)
Discussion started by: marcopb
3 Replies

5. UNIX for Dummies Questions & Answers

SQL block in a Shell Script connecting to a local and remote DB

Hi All, In a Shell scriipt with a SQL block I want to issue a query against a local DB and a remote DB on a remote server. The shell script is running locally. This is how I connect to the local server. But I want the query to reference remote table in the join. Question can I specify a... (1 Reply)
Discussion started by: daveu7
1 Replies

6. Shell Programming and Scripting

Connecting to remote host

Checking crontab job entry in 3 different hosts Hi Gurus, I am trying to connect to remote host from current host to check crontab entries. I have started like this ssh -n -l db2psp 205.191.156.17 ". ~/.profile >/dev/null 2>/dev/null; cd log ;ls | wc -l" I got this error ? ssh:... (1 Reply)
Discussion started by: rocking77
1 Replies

7. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

8. Shell Programming and Scripting

Error when connecting to remote server to find files with timestamp today's day

I am connecting to remote server and try to check if files with timestamp as Today's day are on the directory. Below is my code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly; Today=`date +%Y%m%d`; if ;then echo "We... (1 Reply)
Discussion started by: digioleg54
1 Replies

9. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

10. Programming

Connecting remote SSH server which OSS lib to choose ?

Hey i want to be able to write simple SSH client to be able to connect to SSH server and invoke remote SSH command i found libssh and libssh2 and the old openSSh , what is the best and most supported library to choose from ? i need it to be cross platform . Thanks (0 Replies)
Discussion started by: umen
0 Replies
gufw(8) 						      System Manager's Manual							   gufw(8)

NAME
Gufw - Graphic user interface for managing ufw DESCRIPTION
Gufw is an easy to use Ubuntu / Linux firewall, powered by ufw. Gufw is an easy, intuitive, way to manage your Ubuntu firewall. It supports common tasks such as allowing or blocking pre-configured, com- mon p2p, or individual ports port(s), and many others! Gufw is powered by ufw. Introduction iptables is already a very powerful tool by itself, but it's syntax can get awkward at times and hard to figure out, so Ubuntu developers decided to make ufw ("The reason ufw was developed is that we wanted to create a server-level firewalling utility that was a little bit more for `human beings`"), which was to be simpler. Now, on the graphical side of things, Firestarer already existed. But why not make an even easier to use GUI for desktop `human beings`, powered by ufw? This is where Gufw comes in. RUN
You can run Gufw in GNOME menu: /System/Administration/Firewall configuration USAGE
BASIC SETTINGS
Gufw has two states: Enabled and disabled. When Gufw is enabled, you can allow/reject/deny all incoming and outgoing connections. ADD PRECONFIGURED RULE(S) You can select between more Programs and Services preconfigured. Once Program/Service can have multiples rules. ADD SIMPLE RULE(S) You can specify the port or service, and protocol to be allowed (allow traffic), reject (reject traffic without reply), denied (deny traf- fic with reply), limit (limit traffic) on the host, or limit an IP or Port (Protecting against brute-force login attacks). The port can be a number of 5 digits, from 1 to 65535. The service can be any of /etc/services file (By example tcpmux, echo, discard, systat...). The protocol can be: 1. TCP: Apply rule for all traffic in protocol TCP. 2. UDP: Apply rule for all traffic in protocol UDP. 3. both: Apply rule for all traffic in protocol TCP and UDP. ADD ADVANCED RULE(S) You can add an advanced rule. You can specify: 1. Protocol: TCP, UDP or both. 2. From IP Addres: You can allow/deny/reject/limit traffic from IP address. Example for a range: 192.168.1.0/9 3. From Port: You can allow/deny/reject/limit traffic from a port. This parameter is optional. The port can be a number of 5 digits, from 1 to 65535. You can use a range ports with this format port1:port2 (by example 3234:3237), or add multiple ports with port1,port2 (by example 3234,3254). 4. To IP Addres: You can allow/deny/limit traffic to an IP address. This parameter is optional. Example for a range: 192.168.1.0/9 5. To Port: You can allow/deny/reject/limit traffic to a Port. This parameter is optional. The port can be a number of 5 digits, from 1 to 65535. You can use a range ports with this format port1:port2 (by example 3234:3237). GENERAL TO PRECONFIGURED
/ SIMPLE / ADVANCED With the extended parameters you can: 1. Insert a rule in a specific row. 2. Set the log level for ufw. REMOVE ONE RULE
Steps: 1. Select a rule in the list. 2. Click in Remove button. You can delete more rules if you select it. RESET CONFIGURATION
You will remove all rules and reset the ufw configuration to intial status (disable)! EDIT PREFERENCES
You can edit your preferences in /Edit/Preferences menu. Preferences: 1. Gufw log: Gufw will register all commands sent to ufw. 2. ufw log: Enable/disable and set the level of the ufw log. 3. Listening Report: Will display the ports on the live system in the listening state for TCP and the open state for UDP. 4. Notification popups: Gufw will notify the new connections in the Listening Report. SEE ALSO
ufw(8) AUTHOR
Gufw is (C) 2008-2011, Marcos Alvarez Costales <https://launchpad.net/~costales>. This manual page was originally written by Marcos Alvarez Costales <https://launchpad.net/~costales>. 13 Feb 2011 gufw(8)
All times are GMT -4. The time now is 05:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy