port forwarding issue in linux VPS

alikhani10

New Member
Joined
Nov 24, 2021
Messages
1
Reaction score
0
Credits
15
hi guys
because of our government policy all of locall 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?
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!


Top