[SOLVED] IPtables : ssh port forwarding one port to another port issue
location: linuxquestions.com - date: July 23, 2013
Hi , need some help
OS : CentOS 6 64 with KVM intel
Issue : IPtables & SSH
I have used this function for so long without issue
then today i update my CentOS, all sudden stop working
here is the command
SSH Port Forwarding
location: linuxquestions.com - date: September 28, 2005
I am connecting to my home computer from a remote location via ssh. I am forwarding port 8080 dynamically (for the internet, using socks.)
My question is how do i forward outbound ports from the remote computer running the SSH client, meant to go to the internet, to the server at home, which should then forward them to the internet?
Do i have to use a proxy on my home computer or is there an other way of doing this task without needing an other proxy?
SSH port other than 22
location: linuxquestions.com - date: January 21, 2006
Is this possible?? Or is it one of those things that can't be change?? I'm asking cuase in case port 22 is blocked in the windows machine so I can not reach my server...
Rsync specify SSH port
location: linuxquestions.com - date: October 16, 2011
Can some one help me in understanding rsync. I need to transfer a file from one server to another server, anyway the ssh port on the destination server is different. So how can I specify it in rsync command ?
Thanks in advance
rsync using alternative ssh port
location: linuxquestions.com - date: January 29, 2007
I'm trying to rsync a server (ssh port 22) to a new mirror (ssh port 2222) but the difference in port numbers is really causing trouble. No matter what I do I get the same error - it's trying to connect on port 22
Configure SSH port forwarding on RHEL6 Machine
- date: March 3, 2012
i have to machines:
station4.example.com (IP) 172.24.0.4
station5.example.com (IP) 172.24.0.5
have configured apache on station4.example.com and im able to access the websie on station5.example.com now wat i did is; i have applied iptables rule on station4.example.com:
~]# iptables -A INPUT -s 172.24.0.5 -p tcp --dport 80 -j REJECT
~]# iptables -A INPUT -s 172.24.0.5 -p udp --dport 80 -j REJECT
now im not able to access the website from station5.example.com..
i thaught to impliment SSH port forwarding on station5.example.com i have in "/etc/ssh/sshd_conf" edited:
~]# vim /etc/ssh/sshd_conf
~]# service sshd restart
~]# chkconfig sshd on
ssh -L localport:remotehost:remoteport ssh-server-ip -fN
~]# ssh –L 3025:localhost:80 –fN 172.24.0.4
ssh port forwardin in sshconfig
location: linuxquestions.com - date: February 3, 2010
I would like to have a permanent ssh forwarding of the form
ssh -f -N -L9112:localhost:9102 example.org
'man ssh' says that this can be specified in the /etc/ssh/ssh_config
file. I tried this:
Trouble with ssh port forward (bind address)
location: linuxquestions.com - date: April 24, 2007
I would like to create a port forward to direct a port from one box to another. But, I want others on my network to be able to use the tunnel on my box. SSH is currently binding the port forward to localhost. How can I fix this using CentOS 4 (openssh 3.9)
Here is the the tunnel that currently works (but only on localhost)
ssh port forwarding: bind cannot assign requested address
- date: May 22, 2012
I have a problem I don't understand while trying to port forward over ssh.
I wish to remote desktop to a Windows machine at work from my home Linux box. I can do this through an ssh gateway using:
ssh -L port:windows_machine:3389 [email protected]
_gateway -p ssh_port
Doing this I can then connect to the windows machine using Remmina via localhost and the appropriate port from the command above.
So all appears to work. However when I execute the ssh command I get the following error
bind: Cannot assign requested address
Using netstat I can tell I'm not already using the port on my local machine.
Any ideas what's wrong. Thanks in advance.
CUPS to CUPS through SSH port forwarding
- date: August 3, 2011
I have a remote machine running CUPS and managing a locally (USB) connected printer. Everything works fine as expected.
I have another machine also running CUPS for a number of printers that are either local or on the same LAN of the server. Also this works fine.
I need to be able to print from this server on the first remote machine's printer.
I managed to have a remote forwarding like this on the remote machine:
machine# ssh -C -N -T -R 192.168.0.2:631:127.0.0.1:631 [email protected]
(192.168.0.2 is a dummy interface on the server)
This means that any connection on TCP port 192.168.0.2:631 in the server will be forwarded straight to TCP port 127.0.0.1:631 on the remote machine with the printer.
On server's CUPS web UI I've tried to add a printer (with the proper driver) like this:
Page: 1 2 3 4 5 6 7 8 9 10