Hello my friends , i am totally stuck in ssh port forwarding topic
i had learn iptables and other networking topic without any problem but ssh port forwarding is headache
1. local port = what is this ? is this incoming traffic or outgoing traffic
2. remote port = same as above
3.
I am looking to create a load balancing server. Essentially here is what I want to do:
I have a public IP address, lets say 1.1.1.1 I have a second public IP address, lets say 2.2.2.2
Here is what I want to happen. I have a website, www.f.com point to 1.1.1.1 via an A record.
I'm running DD-WRT firmware on my router, version DD-WRT v24-sp2 (12/12/11) std.
I'm trying to port forward http traffic on port 80 to my PC's local IP, 192.168.2.97, and although I can browse my hosted site on my LAN, when I try from a remote IP offsite I get "The Connection has timed out".
I want to forward port 2222 on an Ubuntu 12.04 server to remote host 1.2.3.4 port 22, using iptables.
After reading many web pages on port-forwarding, I issue
$ sysctl net.ipv4.conf.eth0.forwarding
net.ipv4.conf.eth0.forwarding = 1
$ sudo iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 2222 -j DNAT --to-destination 1.2.3.4:22
Which forwards traffic as I desired. But ssh does not work.
I am looking to create a load balancing server. Essentially here is what I want to do,
I have a public ip address, lets say 1.1.1.1 I have a second public ip address, lets say 2.2.2.2
Here is what I want to happen. I have a website www.f.com point to 1.1.1.1 via an A record.
My friends have a Mine craft server with an ip to connect (206.217.128.131:25571). This is obviously not ideal as a true domain name would be more user friendly.
Although I share a VPS with a friend who has a domain name and we even have a site for our server.
Scenario:
I have one ubuntu server with two interfaces eth0 and eth1.
eth0 = public ip(external ip...lets say 77.77.77.77)
eth1 = intranet network(192.168.1.1)
I would like to forward all incoming traffic on port 2222 on my eth0(meaning all outside traffic that comes to 77.77.77.77) to some ip in my intranet network:192.168.1.8 on port 80.
Current firewall settings look like:
:INPUT ACCEPT
so i have the lg esteem on metro pcs and ive rooted it. i aso use wifi tether to play games on my laptop using my 4g, but i cant pay diablo 2 because i get a error saying port 6112 is closed. ive tried the port forwarding app but it doesnt work. ive also ran a port scanner i found that says port 53 on my phone is the only port open. any assistance in solving my problem would be appreciated.
I have an existing iptables setup that does port forwarding. In this port forwarding scenario there are some instances where I do not want it to port forward. So, for instance I have this defined:
iptables -A PREROUTING -t nat -i eth0 '!' -s 10.200.0.0/16 -p tcp --dport 80 -j DNAT --to 10.200.30.11
This will prevent 10.200/16 from accessing this rule.