Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

VMG1312-B10A: CLI: Difference between revisions

'iptables' is an unlisted command. 'ip6tables' is harder to get to.
m ('ifconfig' is undocumented (and quite useful))
('iptables' is an unlisted command. 'ip6tables' is harder to get to.)
=CLI Tips=
 
The ZyXEL VMG1312 has a web interface and a Command Line Interface (CLI). The CLI can be reached by telnet or ssh. Usually the CLI is not needed to be used as allmost of the config changes can be done from the Web interface. However, here are some useful commands for the CLI.
 
==== Show the list of commands: (note, there are extra (hidden?) commands that are not listed, e.g. ifconfig, top, and ps) ====
?
 
There are extra commands that are not shown in that list, e.g. ifconfig, top, and ps.
 
The firewall can be examined/controlled using the unlisted 'iptables' command (known to Linux users):
 
> iptables -nvL
Chain INPUT (policy ACCEPT 74 packets, 16446 bytes)
pkts bytes target prot opt in out source destination
10946 1726K LAN_ONLY_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
10946 1726K DOS_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
10946 1726K ACL_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
10946 1726K FW_GENERAL_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
4836 524K SERVICE_CONTROL all -- * * 0.0.0.0/0 0.0.0.0/0
289 75333 OTHER_INPUT all -- * * 0.0.0.0/0 0.0.0.0/0
215 58887 DROP all -- !br+ * 0.0.0.0/0 0.0.0.0/0
...
 
But frustratingly the 'ip6tables' command is not available for examining/controlling the IPv6 firewall.
The 'ip6tables' command is available from the shell prompt, but AAISP's config means getting a shell prompt is a little complicated.
 
==== Show running processes and CPU/memory information: ====
editor
466

edits