Community discussions

MikroTik App
 
soheilsh
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Fri Nov 26, 2010 3:39 pm

how to set sstp local port?

Sun Oct 02, 2022 10:18 pm

hi , i have chr in client and server side
in server enable port 443 and client connected to 443 port , but client side in torch show 53255 in source port to 443 destination ,
how to fix this ?
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: how to set sstp local port?

Sun Oct 02, 2022 10:29 pm

That's how TCP normally works - server side has a fixed ("well-known") port, and client side chooses a port randomly from a pool. Why do you need to affect that?
 
soheilsh
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Fri Nov 26, 2010 3:39 pm

Re: how to set sstp local port?

Sun Oct 02, 2022 10:52 pm

That's how TCP normally works - server side has a fixed ("well-known") port, and client side chooses a port randomly from a pool. Why do you need to affect that?
blocked by isp in iran , when set local port in client side working
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: how to set sstp local port?

Sun Oct 02, 2022 11:14 pm

If so, use action=src-nat (or action=masquerade) rules at the client with to-ports parameter, matching on dst-address=ip.of.sstp.server dst-port=port-of-sstp.server before the general src-nat/masquerade rule.
 
soheilsh
Member Candidate
Member Candidate
Topic Author
Posts: 100
Joined: Fri Nov 26, 2010 3:39 pm

Re: how to set sstp local port?

Mon Oct 03, 2022 7:29 am

client side is not mikrotik
android and Windows
 
sindy
Forum Guru
Forum Guru
Posts: 10205
Joined: Mon Dec 04, 2017 9:19 pm

Re: how to set sstp local port?

Mon Oct 03, 2022 9:20 am

i have chr in client and server side
client side is not mikrotik
android and Windows
I don't know any way to change the client port on either Android or Windows, except writing your own application. And with your own application, you could even use your own VPN protocol.
 
User avatar
nichky
Forum Guru
Forum Guru
Posts: 1275
Joined: Tue Jun 23, 2015 2:35 pm

Re: how to set sstp local port?

Mon Oct 03, 2022 9:55 am

so ,how u expect someone to help u?

Who is online

Users browsing this forum: No registered users and 96 guests