fix network settings for incusbr0 and add nat for home assistant to varian
This commit is contained in:
@@ -11,6 +11,7 @@
|
|||||||
table ip nat {
|
table ip nat {
|
||||||
chain PREROUTING {
|
chain PREROUTING {
|
||||||
type nat hook prerouting priority dstnat; policy accept;
|
type nat hook prerouting priority dstnat; policy accept;
|
||||||
|
iifname "enp4s0" tcp dport 8123 dnat to 10.46.32.153:8123
|
||||||
iifname "enp4s0" tcp dport 80 dnat to 10.46.32.2:80
|
iifname "enp4s0" tcp dport 80 dnat to 10.46.32.2:80
|
||||||
iifname "enp4s0" tcp dport 443 dnat to 10.46.32.2:443
|
iifname "enp4s0" tcp dport 443 dnat to 10.46.32.2:443
|
||||||
iifname "enp4s0" tcp dport 20 dnat to 10.46.32.2:20
|
iifname "enp4s0" tcp dport 20 dnat to 10.46.32.2:20
|
||||||
@@ -57,7 +58,7 @@
|
|||||||
};
|
};
|
||||||
incusbr1 = {
|
incusbr1 = {
|
||||||
ipv4.addresses = [
|
ipv4.addresses = [
|
||||||
{ address = "10.46.32.1"; prefixLength = 24; }
|
{ address = "10.46.33.1"; prefixLength = 24; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
@@ -67,6 +68,13 @@
|
|||||||
internalInterfaces = [ "incusbr0" "incusbr1" ];
|
internalInterfaces = [ "incusbr0" "incusbr1" ];
|
||||||
externalInterface = "enp4s0";
|
externalInterface = "enp4s0";
|
||||||
forwardPorts = [
|
forwardPorts = [
|
||||||
|
# Web-UI for home-assistant
|
||||||
|
{
|
||||||
|
sourcePort = 8123;
|
||||||
|
proto = "tcp";
|
||||||
|
destination = "10.46.32.153:8123";
|
||||||
|
}
|
||||||
|
# Web-UI for nas
|
||||||
{
|
{
|
||||||
sourcePort = 80;
|
sourcePort = 80;
|
||||||
proto = "tcp";
|
proto = "tcp";
|
||||||
|
|||||||
Reference in New Issue
Block a user