mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 20:14:49 +00:00
fix: add CONNMARK restore-mark to mangle OUTPUT chain
The CONNMARK --restore-mark rule was only in PREROUTING, which handles forwarded packets. Locally-bound listeners (e.g. vhost) generate replies through the OUTPUT chain, where the fwmark was never restored. This caused response packets to route via the default table instead of back through the originating interface.
This commit is contained in:
@@ -276,10 +276,9 @@ export class LiveApiService extends ApiService {
|
||||
})
|
||||
}
|
||||
|
||||
async testPortForward(params: {
|
||||
gateway: string
|
||||
port: number
|
||||
}): Promise<boolean> {
|
||||
async checkPort(
|
||||
params: T.CheckPortParams,
|
||||
): Promise<T.CheckPortRes> {
|
||||
return this.rpcRequest({
|
||||
method: 'net.gateway.check-port',
|
||||
params,
|
||||
|
||||
Reference in New Issue
Block a user