PBR and SSTP vpn

Hello.
I have OpenWrt OpenWrt 22.03.5 r20134-5f15225c1e / LuCI openwrt-22.03 branch git-23.119.80898-65ef406
and
pbr package - Running (version: 1.1.1-7 using nft)

I have several VPNs, one of them is SSTP.
Problem is that I can not find it in PBR. It doesn't show it in Service Gateways list.
Does PBR support SSTP interface?

Did you try to add it in the list of supported interfaces?

1 Like

It is probably just like OpenVPN add the interface with proto none

For OpenVPN add in /etc/config/network

config interface 'ovpnclient'
	option proto 'none'
	option device 'tun0' # name of the ifconfig interface

You get the idea :slight_smile:

Edit: which probably works out the same as @trendy already stated

Could you, please, clarify how I can do it?

2 Likes

@stangri, you might want to extend the list of supported tunneling protocols in the PBR app with sstp, openfortivpn, pppossh.

3 Likes

The more elaborate way in case the GUI does not work :

I have no experience with SSTP but maybe something like:

SSH into the router
Use ifconfig to see the name of your interface

Open /etc/config/network with a text editor or use winscp if you are using windows.

Add to that file something like:

config interface 'mysstp'
	option proto 'none'
	option device 'ifconfig-name-of-sstp-interface' # name of the ifconfig interface

The protocols listed above including SSTP are supported by netifd, so the interface must be already declared in the network config, and declaring it once more as unmanaged may result in undesired side effects.

3 Likes

Thanks. It helped.

Are there network config examples anywhere?

1 Like

See also: Protocol "pppossh" (Point-to-Point over SSH)

According to the sources, they are all tunneling protocols utilizing PPP.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.