Update firewall rules for Ollama server
This commit is contained in:
parent
6dc683484d
commit
aa5e020a30
1 changed files with 1 additions and 1 deletions
|
@ -201,8 +201,8 @@
|
||||||
checkReversePath = "loose";
|
checkReversePath = "loose";
|
||||||
extraCommands = ''
|
extraCommands = ''
|
||||||
# Enable connections to Ollama for VPN users:
|
# Enable connections to Ollama for VPN users:
|
||||||
|
iptables -t filter -I INPUT --protocol TCP --source 10.40.4.0/24 --destination 10.40.4.2 --dport 8080 -j ACCEPT
|
||||||
iptables -t filter -I INPUT --protocol TCP --source 10.40.4.2/32 --destination 10.40.4.2 --dport 11434 -j ACCEPT
|
iptables -t filter -I INPUT --protocol TCP --source 10.40.4.2/32 --destination 10.40.4.2 --dport 11434 -j ACCEPT
|
||||||
iptables -t filter -I INPUT --protocol TCP --source 10.0.7.0/24 --destination 10.40.4.2 --dport 11434 -j ACCEPT
|
|
||||||
'';
|
'';
|
||||||
# wireguard trips rpfilter up
|
# wireguard trips rpfilter up
|
||||||
#extraCommands = ''
|
#extraCommands = ''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue