iptables -t nat -A POSTROUTING -s 192.168.122.45 -o virbr0 -j SNAT --to-source xx.xx.xx.29
Вставляю данное правило в /etc/sysconfig/iptables и получаю
(потестил пару вариаций :
-A POSTROUTING -t nat -s 192.168.122.45 -o virbr0 -j SNAT --to-source xx.xx.xx.29
-t nat -A POSTROUTING -s 192.168.122.45 -o virbr0 -j SNAT --to-source xx.xx.xx.29
-A INPUT -t nat -A POSTROUTING -s 192.168.122.45 -o virbr0 -j SNAT --to-source xx.xx.xx.29
iptables: Цепочкам назначается политика ACCEPT: filter [color="green"][ OK ][/color]
iptables: Сбрасываются правила межсетевого экрана: [color="green"][ OK ][/color]
iptables: Выгружаются модули: [color="green"][ OK ][/color]
iptables: Применяются правила межсетевого экрана: iptables-restore v1.4.7: Line 12 seems to have a -t table option.
Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
[color="red"][СБОЙ ][/color]
в данный момент мой iptables файл такой :
# Firewall configuration written by system-config-firewall
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -i lo -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp -m multiport --dports 5900:5905 -j ACCEPT
-A INPUT -j REJECT --reject-with icmp-host-prohibited
-A FORWARD -j REJECT --reject-with icmp-host-prohibited
COMMITНе могли бы Вы более подробно описать данное действие? Так же есть вопросы с PREROUTING'ом. По всей видимости я что-то напутал и вовсе пропал интернет, пришлось сбросить все правила в iptables.
