ask about SSH traffic forwarding in linux
by alikhani10 from LinuxQuestions.org on (#5SA4Q)
hi guys
our ISPs banned mine ETH
so i rented a linux VPS in another country
i tried to do port forwarding to can connect to ETH pool by these codes :
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp -d "X.X.X.X =VPS IP " --dport 2948 -j DNAT --to-destination stratum+tcp://ethereum.viabtc.com:3333
iptables -t nat -A POSTROUTING -j MASQUERADE
but i got this error: " iptables v1.8.4 (legacy): Port `//ethereum.viabtc.com:3333' not valid"
or " iptables v1.8.4 (legacy): Bad IP address "ethereum.viabtc.com"
what should i do to goal my aim?
our ISPs banned mine ETH
so i rented a linux VPS in another country
i tried to do port forwarding to can connect to ETH pool by these codes :
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp -d "X.X.X.X =VPS IP " --dport 2948 -j DNAT --to-destination stratum+tcp://ethereum.viabtc.com:3333
iptables -t nat -A POSTROUTING -j MASQUERADE
but i got this error: " iptables v1.8.4 (legacy): Port `//ethereum.viabtc.com:3333' not valid"
or " iptables v1.8.4 (legacy): Bad IP address "ethereum.viabtc.com"
what should i do to goal my aim?