mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 04:01:58 +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:
@@ -497,13 +497,12 @@ export class MockApiService extends ApiService {
|
||||
return null
|
||||
}
|
||||
|
||||
async testPortForward(params: {
|
||||
gateway: string
|
||||
port: number
|
||||
}): Promise<boolean> {
|
||||
async checkPort(
|
||||
params: T.CheckPortParams,
|
||||
): Promise<T.CheckPortRes> {
|
||||
await pauseFor(2000)
|
||||
|
||||
return false
|
||||
return { ip: '0.0.0.0', port: params.port, reachable: false }
|
||||
}
|
||||
|
||||
// marketplace URLs
|
||||
|
||||
Reference in New Issue
Block a user