Astaro useful shell commands.

Hi to All.
I'm opening this thread so any of you which happens to run into useful Shell commands, can add it in here.
My goal is to create a document with many Astaro useful shell commands.
You are welcome to add, remark or reject any of the commands in here.
[:)]



This thread was automatically locked due to age.
[unlocked by: BAlfson at 2:53 PM (GMT -7) on 4 Jun 2021]
Parents
  • To View automatic firewall rules from command line
    iptables -L AUTO_FORWARD

    Packet Filter
    iptables -L -nv
  • To configure UTM with a single physical NIC by converting untagged default eth0 to a VLAN tagged interface:

    # cc ↩
    set_object({class=>'interface', type=>'vlan', ref=>'REF_DefaultInternal', data=>{name=>'Internal', itfhw=>'REF_ItfHwDefaultInternal', primary_address=>'REF_ItfParamsDefaultInternal', bandwidth=>100000000, status=>1, vlantag=>1}}) ↩
    quit ↩

    That converts the untagged default internal interface eth0 to be a VLAN tagged interface eth0:1 (VLAN ID 1).

    Please note that this *only* applies to the predefined 'internal' interface and affects the assigned physical NIC! So if you changed it to anything else than eth0, it will apply to that interface instead

    Remember to configure the switchport accordingly to be able to reach WebAdmin again.
Reply
  • To configure UTM with a single physical NIC by converting untagged default eth0 to a VLAN tagged interface:

    # cc ↩
    set_object({class=>'interface', type=>'vlan', ref=>'REF_DefaultInternal', data=>{name=>'Internal', itfhw=>'REF_ItfHwDefaultInternal', primary_address=>'REF_ItfParamsDefaultInternal', bandwidth=>100000000, status=>1, vlantag=>1}}) ↩
    quit ↩

    That converts the untagged default internal interface eth0 to be a VLAN tagged interface eth0:1 (VLAN ID 1).

    Please note that this *only* applies to the predefined 'internal' interface and affects the assigned physical NIC! So if you changed it to anything else than eth0, it will apply to that interface instead

    Remember to configure the switchport accordingly to be able to reach WebAdmin again.
Children
No Data