Adding NAT rule via shell/console
- 
 Hello, I did read about adding firewall rule via console [https://docs.netgate.com/pfsense/en/latest/firewall/adding-rules-with-easyrule.html]. I could not find any information about adding a NAT rule via console. However, I did read that "pfctl -sn" will list all the NAT rules [https://docs.netgate.com/pfsense/en/latest/firewall/viewing-the-full-pf-ruleset.html]. I am unable to use the web interface at the moment and need to add a NAT rule for this. Thanks. 
- 
 @bouke said in Adding NAT rule via shell/console: I am unable to use the web interface at the moment and need to add a NAT rule for this. Thanks. That's only possible via pfSSH.php and direct XML editing. The easyrule Skript is only a small mechanism for quickly adding simple blocks on an interface (mostly WAN) but has nothing for NAT editing in any way. 
- 
 Hard to really recommend it but if you really have no other option it is (just about) possible to add a NAT rule using Links.  Be prepared for frustration though!  Steve 
- 
 But that only works if the webUI is still responding ;) Not sure if the OP meant that. And creating NATs via pfSSH isn't really nice either :D 
- 
 @JeGr said in Adding NAT rule via shell/console: But that only works if the webUI is still responding ;) Good point! 


