Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ const actionOptions = ref([
{
id: 'ACCEPT',
label: 'ACCEPT'
},
{
id: 'NOTRACK',
label: 'NOTRACK'
}
])

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ function getRuleActionIcon(ruleTarget: string) {
case 'DROP':
case 'REJECT':
return 'ban'
case 'NOTRACK':
return 'eye-slash'
default:
return 'circle-question'
}
Expand All @@ -200,6 +202,8 @@ function getRuleActionColor(rule: FirewallRule) {
case 'DROP':
case 'REJECT':
return 'text-rose-700 dark:text-rose-500'
case 'NOTRACK':
return 'text-gray-700 dark:text-gray-500'
default:
return ''
}
Expand Down
2 changes: 1 addition & 1 deletion src/stores/standalone/firewall.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ interface ForwardingResponse {
ipset?: string
}

export type FirewallRuleAction = 'DROP' | 'REJECT' | 'ACCEPT'
export type FirewallRuleAction = 'DROP' | 'REJECT' | 'ACCEPT' | 'NOTRACK'
export type NatRuleAction = 'SNAT' | 'MASQUERADE' | 'ACCEPT'

export interface FirewallRule {
Expand Down
Loading