Jump to content
1 post in this topic

Recommended Posts

Hi everybody,

 

I have freshly set up an L2TP ipsec server, but I was disappointed when I realize that my network administrator filter several critical ports. So i'm not able to establish an ipsec connection with my iphone on defaults ports 4500, 1701, etc. :(

 

My first reaction was "Hey, what about changing the defaults ports to 80, 443 or 21 ?" But actually it was impossible because these ports was hard defined at the compilation. I tried to change it with an hex editor, but I encounter several problems with the vpn client sandbox.

 

So the next idea consists of forwarding these ports with Packet Filter. But i'm not very familiar with PF, i'm used to play with iptables. I just have to write several rules to change the destination ports of my packets :

 

For example, all packets that have a destination port like 4500, must be forwarded to 443.

 

Thanks in advance for any help !

Link to comment
https://www.insanelymac.com/forum/topic/235852-use-pf-packet-filter-on-ios/
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...