<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.ledhed.net/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=CLI_Quick_Reference_-_OpenWRT</id>
		<title>CLI Quick Reference - OpenWRT - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.ledhed.net/index.php?action=history&amp;feed=atom&amp;title=CLI_Quick_Reference_-_OpenWRT"/>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=CLI_Quick_Reference_-_OpenWRT&amp;action=history"/>
		<updated>2026-04-14T16:03:14Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.2</generator>

	<entry>
		<id>//wiki.ledhed.net/index.php?title=CLI_Quick_Reference_-_OpenWRT&amp;diff=3500&amp;oldid=prev</id>
		<title>Ledhed: Created page with &quot;== Overview == Some useful CLI commands for OpenWRT   == Packages == === Update Package List ===  opkg update   === Install Package ===  opkg install nano   === Remove Package...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.ledhed.net/index.php?title=CLI_Quick_Reference_-_OpenWRT&amp;diff=3500&amp;oldid=prev"/>
				<updated>2020-12-02T23:14:08Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview == Some useful CLI commands for OpenWRT   == Packages == === Update Package List ===  opkg update   === Install Package ===  opkg install nano   === Remove Package...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
Some useful CLI commands for OpenWRT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Packages ==&lt;br /&gt;
=== Update Package List ===&lt;br /&gt;
 opkg update&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install Package ===&lt;br /&gt;
 opkg install nano&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Remove Package ===&lt;br /&gt;
 opkg remove nano&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Firewall ==&lt;br /&gt;
=== Firewall Config File ===&lt;br /&gt;
 /etc/config/firewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Enable/Disable firewall rule ===&lt;br /&gt;
 uci set firewall.@rule[xxx].enabled=0&lt;br /&gt;
''Where xxx = the rule number''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Firewall Rule Example ===&lt;br /&gt;
/etc/config/firewall&lt;br /&gt;
 config rule&lt;br /&gt;
         option target 'ACCEPT'&lt;br /&gt;
         option src 'wan'&lt;br /&gt;
         option proto 'tcp'&lt;br /&gt;
         option dest_port '22'&lt;br /&gt;
         option name 'WAN SSH'&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Reload the firewall after a change ===&lt;br /&gt;
 fw3 reload&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference ==&lt;br /&gt;
https://forum.openwrt.org/t/how-to-enable-disable-a-traffic-rule-from-the-shell/22611&lt;br /&gt;
&lt;br /&gt;
https://openwrt.org/docs/guide-user/base-system/uci&lt;br /&gt;
&lt;br /&gt;
https://openwrt.org/docs/guide-user/firewall/firewall_configuration&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:OpenWRT]]&lt;/div&gt;</summary>
		<author><name>Ledhed</name></author>	</entry>

	</feed>