Sponsored Content
Operating Systems Linux Ubuntu Connecting to a remote server Post 302279297 by Altay_H on Thursday 22nd of January 2009 10:51:07 AM
Old 01-22-2009
I'm already forwarding the necessary ports

Quote:
Originally Posted by linuxjunkie
So you sepcify what port you allow traffic on and you specify that it can only go to one specific ip address.
Quote:
Originally Posted by Altay_H
My server is on a static (local) IP address. The router is configured to forward the necessary ports to my server. So, when I tested out my connection, I was able to connect to my server from another computer on the same local area network using my non-local IP address (the IP address assigned to my router by my ISP).
I have already set up port forwarding correctly, otherwise I would not be able to access my server via the non-local IP address of my router.
 

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
ip6config(8)						    BSD System Manager's Manual 					      ip6config(8)

NAME
ip6config -- Configure IPv6 and 6to4 IPv6 tunnelling SYNOPSIS
ip6config [-h] command interface DESCRIPTION
The ip6config script can be used to start up or shut down IPv6 on active interfaces. It can also be used to configure a 6to4 tunnel and start or stop router advertisement. When IPv6 is enabled on an interface the protocol is attached to the interface, at which point the default settings in the kernel allow it to acquire a link-local address and listen for router advertisements. 6to4 is a mechanism by which your IPv6 address(es) are derived from an assigned IPv4 address, and which involves automatic tunnelling to one or more remove 6to4 hubs, which will then forward your v6 packets on the 6bone etc. Replies are routed back to you over IPv4 via (possibly) other 6to4 capable remote gateways. As such, IPv6-in-IPv4-encapsulated packets are accepted from all v4-hosts. From your (single) IPv4 address, you get a whole IPv6 /48 network, which allows you to split your network in 2^16 subnets, with 2^64 hosts each. You need to setup routing for your internal network properly, help is provided for setting up the border router here. This script takes the burden to calculate your IPv6 address from existing IPv4 address and runs the commands to setup (and tear down) auto- matic 6to4 IPv6 tunnelling. Finally, router advertisement for an internal network can be started and stopped. This uses sysctl to set net.inet6.ip6.forwarding and net.inet6.ip6.accept_rtadv to the proper values for routing. Possible options are: -h Show usage. Possible commands are: start-v6 Start IPv6 on given interface using default kernel settings. Attaches protocol to the interface. If interface is "all", all valid interfaces will be configured. stop-v6 Stop IPv6 on given interface. Detaches protocol from the interface. If interface is "all", all valid interfaces will be config- ured. start-stf Configure 6to4 IPv6. The stf(4) interface is configured, and a default route to a remote 6to4 gateway is established. In addi- tion, the internal network interface is assigned an address. stop-stf Stops 6to4 IPv6. All addresses are removed from the stf(4) device, and the default route is removed. start-rtadvd Starts router advertizement and IPv6 packet forwarding, turning the machine into a IPv6 router. rtadvd(8) is invoked with a custom config file created under /var/run. Clients just need to be told to accept router advertizements, i.e. the 'net.inet6.ip6.accept_rtadv' sysctl needs to be set to '1'. You can arrange that by setting ``ip6mode=autohost'' in /etc/rc.conf. stop-rtadvd Stops router advertizement and IPv6 packet forwarding. rtadvd(8) is stopped, and the rtadvd.conf(5) config file is removed from /var/run. REQUIREMENTS
Besides IPv4 connectivity, you need support for IPv6 and the stf(4) device in your kernel. This is provided beginning with Darwin Kernel Ver- sion 6.0. No special values are needed in /etc/rc.conf to run this script, but see comment on setting up IPv6-clients 'behind' your 6to4 router for the rtadvd-start command! CONFIGURATION
The default IPv6 configuration for an interface assigns a link-local address to it and sets the interface to receive router advertisements. No further configuration is necessary for basic functionality. However, various settings can be modified by using sysctl. The ip6config script reads its 6to4 configuration from a config file named 6to4.conf. The 6to4.conf file is in perl(1) syntax, and contains several variables that can be tuned to adjust your setup. in_if The inside interface. If non-empty, this interface is assigned the IPv6 address 2002:x:x:v6_innernet:hostbits6, see below. This is only useful on machines that have more than one network interface, e.g. with a modem and a local ethernet. v6_net The subnet address you want to use on the address of your outbound interface. Defaults to ``1''. v6_innernet The subnet address you want to use on the address of your inbound interface. Defaults to ``2''. hostbits6 The lower 64 bits of both the inbound and outbound interface's addresses. peer Name of the remote 6to4 server that'll take our IPv6-in-IPv4 encapsulated packets and route them on via IPv6. A special value of ``6to4-anycast'' can be used for the anycast service defined in RFC 3068. Other possible values are given in the example config file. SEE ALSO
stf(4), ``6to4 IPv6 Explained'' at http://www.feyrer.de/NetBSD/6to4.html, NetBSD IPv6 Documentation at http://www.netbsd.org/Documentation/network/ipv6/, RFC 3068. HISTORY
The ip6config 6to4 utility and manpage portions were written by Hubert Feyrer <hubert@feyrer.de> for NetBSD. BSD
May 21, 2002 BSD
All times are GMT -4. The time now is 01:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy