Vyatta里进行端口映射

一、在NAT里设置转发

vyatta@vyatta# show service nat rule 30
destination {
     port 22222
}
inbound-interface pppoe0
inside-address {
     address 192.168.1.186
}
protocol tcp
type destination
[edit]
vyatta@vyatta#

二、防火墙里放行

vyatta@vyatta# show firewall name OnWAN rule 15
action accept
destination {
     port 22222
}
protocol tcp
[edit]
vyatta@vyatta#

Leave a Reply

Your email address will not be published. Required fields are marked *