Vyatta – How to enable Transparent Proxy

Login to Vyatta and switch to configure mode

configure
 set service webproxy listen-address 192.168.1.2
 set service webproxy  domain-noncache mydomain.vn
 set service webproxy cache-size 20480
 set service webproxy mem-cache-size 1500
 set service webproxy maximum-object-size 40960
 commit
 save
cache-size (MB): Total disk cache size = 20GB
mem-cache-size (MB): Total memory cache size = 1.5GB
maximum-object-size (KB): Maximum size of 1 file = 40MB
configure
 show service webproxy
    cache-size 20480
    domain-noncache mydomain.vn
    listen-address 192.168.1.2 {
    }
    maximum-object-size 40960
    mem-cache-size 1500

Vyatta – How to view configuration

When you log on to the system, the system is in operational mode

  • Operational mode provides access to operational commands for showing and clearing information and enabling or disabling debugging, as well as commands for configuring terminal settings, loading and saving configuration, and restarting the system.
  • Configuration provides access to commands for creating, modifying, deleting, committing and showing configuration information

Operation mode

vyatta@vyatta:~$ <Tab>
 vyatta@vyatta:~$ show <Tab>
 vyatta@vyatta:~$ show wan-load-balance status
 vyatta@vyatta:~$ show version
 vyatta@vyatta:~$ show configuration
 vyatta@vyatta:~$ show interfaces

Configure mode

To enter configuration mode type configure, to exit just type exit in operation mode

vyatta@vyatta:~$ configure
 [edit]
 vyatta@vyatta#
 In configuration mode we can also use show to view configure parameter
 vyatta@vyatta# show interfaces
 vyatta@vyatta# show load-balancing

When we finish our configuration, we have to commit the change before exit. For example: to Enable https Service.

vyatta@vyatta# set service https
 [edit]
 vyatta@vyatta# commit
 vyatta@vyatta# save
 vyatta@vyatta# exit

You will notice that which mode you are in by looking at the symbol $ (operation) or # (configure)