proxmox_one_ip
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
proxmox_one_ip [2016/07/17 10:37] – neoon | proxmox_one_ip [2021/11/25 22:42] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 51: | Line 51: | ||
/ | / | ||
- | You can setup your own bash script with these commands and add it to the Startup: [[startup|Run a Script while Booting]] | + | You can setup your own bash script with these commands and add it to the Startup: [[startup|Run a Script while Booting]] |
- | iface vmbr2 inet static | + | Or just put it into your Interfaces like that: |
- | address | + | |
- | netmask | + | auto vmbr2 |
- | bridge_ports none | + | |
- | bridge_stp off | + | address 10.21.21.254 |
- | bridge_fd 0 | + | netmask 255.255.255.0 |
- | post-up echo 1 > / | + | bridge_ports none |
- | post-up iptables -t nat -A POSTROUTING -s ' | + | bridge_stp off |
- | post-down iptables -t nat -D POSTROUTING -s ' | + | bridge_fd 0 |
- | post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport | + | post-up echo 1 > / |
+ | post-up iptables -t nat -A POSTROUTING -s ' | ||
+ | post-down iptables -t nat -D POSTROUTING -s ' | ||
+ | post-up iptables -t nat -A PREROUTING -i vmbr0 -p tcp --dport | ||
+ | post-down iptables -t nat -D PREROUTING -i vmbr0 -p tcp --dport 2222 -j DNAT --to 10.21.21.4: | ||
proxmox_one_ip.1468751860.txt.gz · Last modified: 2021/11/25 22:44 (external edit)