SemkoDev / field.cli

WE HAVE MOVED TO A NEW REPOSITORY
https://gitlab.com/semkodev/field.cli
ISC License
34 stars 7 forks source link

HOW TO ASSIGN Client IP #20

Closed guang384 closed 6 years ago

guang384 commented 6 years ago

my node access via proxy

so server got ip not my real ip

got lots of error

FIELD Field update error to field.carriota.com: 429 null { error: 'IP flagged for 5 minutes due to misbehaviour: Ping back to Client IP failed: [59.23.123.41]' }

## 59.23.123.41 not my real ip, its assign by proxy

is there any way to submit my real client ip to server?

guang384 commented 6 years ago

cause chinese GFW a node on aliyun can not access ghs.googlehosted.com directly

guang384 commented 6 years ago

ping field.carriota.com unstabitily

Sometimes good sometimes bad.

user@host:~$ ping field.carriota.com PING ghs.googlehosted.com (216.58.200.243) 56(84) bytes of data. 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=1 ttl=46 time=52.0 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=2 ttl=46 time=52.0 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=3 ttl=46 time=52.0 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=4 ttl=46 time=52.1 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=5 ttl=46 time=52.0 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=6 ttl=46 time=52.0 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=7 ttl=46 time=52.0 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=8 ttl=46 time=52.1 ms 64 bytes from tsa03s01-in-f19.1e100.net (216.58.200.243): icmp_seq=9 ttl=46 time=52.1 ms --- ghs.googlehosted.com ping statistics --- 9 packets transmitted, 9 received, 0% packet loss, time 8009ms rtt min/avg/max/mdev = 52.052/52.100/52.186/0.218 ms user@host:~$ ping field.carriota.com PING ghs.googlehosted.com (172.217.24.19) 56(84) bytes of data.

--- ghs.googlehosted.com ping statistics --- 19 packets transmitted, 0 received, 100% packet loss, time 18144ms

guang384 commented 6 years ago

so i try to access Field Server via a porxy

guang384 commented 6 years ago

resolved by modify /etc/hosts