관리 메뉴

bright jazz music

proxmox 본문

OS 및 기타/proxmox

proxmox

bright jazz music 2023. 3. 26. 21:29
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

iface enx00e04c51c620 inet manual

iface wlp1s0 inet manual

iface enx588694f74269 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.35.44/24
        gateway 192.168.35.1
        bridge-ports enx00e04c51c620
        bridge-stp off
        bridge-fd 0

auto vmbr1
iface vmbr1 inet static
        address 192.168.35.90/24
        bridge-ports enx588694f74269
        bridge-stp off
        bridge-fd 0

auto vmbr2
iface vmbr2 inet static
        address 10.10.10.1/24
        bridge-ports none
        bridge-stp off
        bridge-fd 0

        post-up echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o vmbr1 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o vmbr1 -j MASQUERADE​

 

Linux zahive 5.15.102-1-pve #1 SMP PVE 5.15.102-1 (2023-03-14T13:48Z) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Mar 26 21:12:39 KST 2023 on pts/0
root@zahive:~# iptables -t nat -A PREROUTING -i vmbr1 -p tcp --dport 57522 -j DNAT --to 10.10.10.15:22
root@zahive:~#

 

Comments