SSH port forwarding advanced
location: ubuntuforums.com - date: August 13, 2010
Here is my problem! I recently switched from Windows not suspecting that Linux would put those constraint on my work.
I am a big fan and constant user of putty and especially the port forwarding feature. I often switch and change forwarding options, which is very easy with the right button to the title bar of the connection. So in an established connection I switch with no hassle the option and this works. Also I often use the duplicate this session option.
Now how could one accomplish these routines under Ubuntu?
(change settings of an established session. i even searched for a commands solution)
duplicate an existing session
Does Windows have a better ssh client and options than Ubuntu?!
SSH Port Forwarding
location: linuxquestions.com - date: January 1, 2013
New here and am a newbi to Linux. I have a debian raspberry pi that I have setup as a router with iptables. Basically replaced my DD-WRT because of memory and cpu issues. Question is in regards to SSH port forwarding
First of all, I have port forwarding working. I have a debian based router (raspberry pi) at another location. Its running sshd and I can connect with my putty client. I installed polipo – a http proxy on this remote router. I go into putty and setup a port forward to port 9999. polipo is setup to listen on 9999. I fire up my browser with the proxy settings and I can browse over the remote router.
So far so good.
So, how do I do get pop3, imap, dns, and other services running on my pc to work in the same manner? Do I have to setup another proxy on the remote router one for each of these services?
It looks like putty will allow me to create additional port forwards i.e. pop3 on 9998 in the same connection. If I were to setup a pop
SSH Port Forwarding with IPTables & DNAT
location: linuxquestions.com - date: August 24, 2006
I want to forward external SSH requests from a gateway server, to a content server that's inside a local network using DNAT. I'm using IPTABLES with PREROUTING but it doesn't seem to work the way I would expect it to (it blocks all SSH connections from the outside).
echo "1" > /proc/sys/net/ipv4/ip_forward
# clear configuration
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -F INPUT
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -F OUTPUT
/sbin/iptables -P FORWARD DROP
/sbin/iptables -F FORWARD
/sbin/iptables -t nat -F
# allow loopback connection
/sbin/iptables -A INPUT -i lo -s 127.0.0.1 -j ACCEPT
/sbin/iptables -A OUTPUT -o lo -d 127.0.0.1 -j ACCEPT
# set up wi-line
/sbin/iptables -A FORWARD -i eth0 -o eth2 -m state --state ESTABLISHED,RELATED -j ACCEPT
/sbin/iptables -A FORWARD -i eth2 -o eth0 -j AC
SSH port forwarding [Ubuntu Host] to Mac Client
- date: April 14, 2010
I have open-ssh installed on my ubuntu computer, and I can SSH into it perfectly.
ssh [email protected]
To access official Ubuntu documentation, please visit:
3 packages can be updated.
0 updates are security updates.
You have new mail.
Last login: Wed Apr 14 12:37:30 2010 from [email protected]
However when I run
sudo ssh -Nv -L 80:127.0.0.1:80 [email protected]
debug1: Authentication succeeded (password).
debug1: Local connections to LOCALHOST:80 forwarded to remote address 127.0.0.1:80
debug1: Local forwarding listening on ::1 port 80.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 80.
debug1: channel 1: new [port listener]
debug1: Requesting [email protected]
debug1: Entering interactive session.
debug1: Connection to port 80 forwarding to 127.0.0.1 port 80 requested.
debug1: channel 2: new [direct-tcpip]
ssh port forwarding doesn't work on Ubuntu 10.04 LTS
location: ubuntuforums.com - date: June 13, 2012
I have a problem of dynamic port forwarding on Ubuntu 10.04. I have a Ubuntu 10.04 desktop which connects to internet through a proxy. This machine (machine A) is installed with SSH server. From another machine which is also installed Ubuntu 10.04, I tried to use dynamic port forwarding with the command
ssh -D 9999 <user>@machineA
Then, at the SSH client, I configured firefox to use the SOCKs v5 127.0.0.1:9999 as a proxy but I couldn't access to the internet using dynamic port forwarding. I tried successfully with a CentOS server with SSH server enabled.
Most of documents and articles in the Internet say that it's simply to enable X11Forwarding, AllowTcpForwarding and PermitTunnel on SSH server. I'm not sure if this problem is related to firewall rules, Ubuntu 10.04, etc. Do anyone have an idea how to solve this problem?
ssh port forwarding from IPv6 not recognized
location: ubuntuforums.com - date: February 19, 2010
A command like (single quotes used in the command):
ssh -L '[::1]:3128:127.0.0.1:3128' ...
is getting an error message like:
channel_setup_fwd_listener: getaddrinfo(::1): Address family for hostname not supported
This is supposed to be an IP address, not a hostname, for the localhost in IPv6. Anyone know what is wrong with this? Addresses like this work OK in rsync. I know I can use ip6-localhost as a hostname. But right now I'm testing actual IP addresses in IPv6 to see what programs can or cannot handle it.
Samba, ssh, port forwarding, and dynamic IP
location: linuxquestions.com - date: March 19, 2004
I am trying to set up remote access to our office's samba file server and so far I am thinking that port forwarding via ssh is the way to go, but through my research so far I have not been able to answer a few questions.
1. What effect will a dynamic IP address on one end have on the connection system?
2. Both ends are protected via a router, with one of them, my end, already forwarding port 22 to the samba file server. Will the setup require port 22 to be opened on the other end? All connection requests will be coming from within the other network.
3. What setup changes are required, if any, to allow multiple users to remotely map a samba drive at their end or is it only possible to allow one remote user to connect per remote network?
4. Can the setup for remote users be created in the form of a no-brainer connection with a minimal amount of work required each time the want to reconnect. I know they will have to initiate the connection via Putty and I can sto
[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?
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
Page: 1 2 3 4 5 6 7 8 9 10