Skip to main content

Miscellaneous Rules

Surfboard supports several other rule types for granular traffic control based on destination ports, source IPs, and network protocols.

Example

# Routes traffic to destination port 80 directly
DEST-PORT,80,DIRECT

# Routes traffic originating from a specific local client IP directly
SRC-IP,192.168.20.100,DIRECT

# Routes traffic received on a specific local listen port directly
IN-PORT,6152,DIRECT

# Routes all HTTP (TCP port 80) traffic directly
PROTOCOL,HTTP,DIRECT

Format

{type},{value},{target_proxy}

Parameters

NameValueMandatoryNote
typeDEST-PORT
SRC-IP
IN-PORT
PROTOCOL
trueSRC-IP: Used to differentiate client traffic received by the LAN proxy based on the client IP.
IN-PORT: Used to differentiate client traffic received by the LAN proxy based on the proxy port.
valueDEST-PORT: Destination port number.
SRC-IP: Client IP address.
IN-PORT: LAN proxy listen port number.
PROTOCOL: HTTP/HTTPS/TCP/UDP/QUIC.
truePROTOCOL: DoH, DoH3, and DoQ are not supported yet.
target proxy-trueThe specified proxy or proxy group must exist in the profile.