AntiRevoke icon indicating copy to clipboard operation
AntiRevoke copied to clipboard

Server Config

Open iambenmitchell opened this issue 7 years ago • 4 comments

Hello, i am trying to use my own server, however when i modify the file: VpnManager.swift with my own IP, port etc for my Shadow socks proxy server. It builds fine, no errors. But when i go to connect, my ip is unchanged

I also noticed that in settings -> vpn -> AntiRevoke, the server field is 8.8.8.8

could you tell me what i need to do in order to have this connect to my proxy?

Thanks!

iambenmitchell avatar Jun 02 '18 13:06 iambenmitchell

I edited all the settings in PacketTunnelProvider.swift and also VpnManager.swift

now when i press connect, it says connected, then it quickly switches to disconnected,

here is my log:

2018-06-02 14:17:03.613156+0100 AntiRevoke[1508:296701] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x1d00988d0 AntiRevoke.RoundedImage:0x105230430.height == 31 (active)>", "<NSLayoutConstraint:0x1d0098f10 V:|-(6)-[AntiRevoke.RoundedImage:0x105230430] (active, names: '|':UITableViewCellContentView:0x10522f870 )>", "<NSLayoutConstraint:0x1d0098f60 V:[AntiRevoke.RoundedImage:0x105230430]-(6.5)-| (active, names: '|':UITableViewCellContentView:0x10522f870 )>", "<NSLayoutConstraint:0x1d009ac20 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x10522f870.height == 43.6667 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1d00988d0 AntiRevoke.RoundedImage:0x105230430.height == 31 (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. 2018-06-02 14:17:03.615026+0100 AntiRevoke[1508:296701] [LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. ( "<NSLayoutConstraint:0x1d00984c0 UIButton:0x10522f1b0'Connect'.height == 44 (active)>", "<NSLayoutConstraint:0x1d00992d0 V:[UIButton:0x10522f1b0'Connect']-(0)-| (active, names: '|':UITableViewCellContentView:0x105232d50 )>", "<NSLayoutConstraint:0x1d0099320 V:|-(0)-[UIButton:0x10522f1b0'Connect'] (active, names: '|':UITableViewCellContentView:0x105232d50 )>", "<NSLayoutConstraint:0x1d009b0d0 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x105232d50.height == 43.6667 (active)>" )

Will attempt to recover by breaking constraint <NSLayoutConstraint:0x1d00984c0 UIButton:0x10522f1b0'Connect'.height == 44 (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful. off Connecting to AntiRevoke connecting off Connecting to AntiRevoke connecting off

iambenmitchell avatar Jun 02 '18 13:06 iambenmitchell

Hi Ben,

As previously discussed in direct messages you do not need to change the PacketTunnel you only need to change VPNmanager, the IP should stay as 8.8.8.8, if you go to google and type what's my ip if you set it up correctly you should see an IP change. If not you'll have to edit a tiny piece of code in PacketTunnel which will redirect through the proxy router

JosephShenton avatar Jun 02 '18 20:06 JosephShenton

Hi, i made the match domains [""] left 8.8.8.8 as it is, and even used https://my.ishadowx.net

Still doesn't work,

As a last attempt before contacting you again, i tried replacing 8.8.8.8 with the hostname from https://my.ishadowx.net -

still didnt work,

i even tried using the IP instead of host name, (i got it by pinging the hostname)

not working.

Could you try seeing if you can get yours to work on your computer, it might be my computer being weird.

iambenmitchell avatar Jun 02 '18 23:06 iambenmitchell

Weird, i think it is sort of working, this is the log from the server:

2018-06-03 02:01:04 DEBUG destroy 2018-06-03 02:01:04 DEBUG destroying local 2018-06-03 02:01:06 DEBUG accept 2018-06-03 02:01:06 WARNING unsupported addrtype 44, maybe wrong password 2018-06-03 02:01:06 ERROR can not parse header Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/shadowsocks/tcprelay.py", line 259, in _handle_stage_hello raise Exception('can not parse header') Exception: can not parse header 2018-06-03 02:01:06 DEBUG destroy 2018-06-03 02:01:06 DEBUG destroying local

howver IP unchanged

iambenmitchell avatar Jun 03 '18 00:06 iambenmitchell