Server IP : 127.0.0.2 / Your IP : 52.15.244.228 Web Server : Apache/2.4.18 (Ubuntu) System : User : www-data ( ) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/augeas/lenses/dist/tests/ |
Upload File : |
module Test_lokkit = let conf = "# Configuration file for system-config-firewall --enabled --port=111:tcp -p 111:udp -p 2020-2049:tcp --port=5900-5910:tcp --custom-rules=ipv4:filter:/var/lib/misc/iptables-forward-bridged -s dns --service=ssh --trust=trust1 --masq=eth42 --block-icmp=5 -t trust0 --addmodule=fancy --removemodule=broken --forward-port=if=forw0:port=42:proto=tcp:toport=42:toaddr=192.168.0.42 --selinux=permissive " test Lokkit.lns get conf = { "#comment" = "Configuration file for system-config-firewall" } { } { "enabled" } { "port" { "start" = "111" } { "protocol" = "tcp" } } { "port" { "start" = "111" } { "protocol" = "udp" } } { "port" { "start" = "2020" } { "end" = "2049" } { "protocol" = "tcp" } } { "port" { "start" = "5900" } { "end" = "5910" } { "protocol" = "tcp" } } { "custom-rules" = "/var/lib/misc/iptables-forward-bridged" { "type" = "ipv4" } { "table" = "filter" } } { "service" = "dns" } { "service" = "ssh" } { "trust" = "trust1" } { "masq" = "eth42" } { "block-icmp" = "5" } { "trust" = "trust0" } { "addmodule" = "fancy" } { "removemodule" = "broken" } { "forward-port" { "if" = "forw0" } { "port" = "42" } { "proto" = "tcp" } { "toport" = "42" } { "toaddr" = "192.168.0.42" } } { "selinux" = "permissive" } test Lokkit.custom_rules get "--custom-rules=ipv4:filter:/some/file\n" = { "custom-rules" = "/some/file" { "type" = "ipv4" } { "table" = "filter" } } test Lokkit.custom_rules get "--custom-rules=filter:/some/file\n" = { "custom-rules" = "/some/file" { "table" = "filter" } } test Lokkit.custom_rules get "--custom-rules=ipv4:/some/file\n" = { "custom-rules" = "/some/file" { "type" = "ipv4" } } test Lokkit.custom_rules get "--custom-rules=/some/file\n" = { "custom-rules" = "/some/file" } test Lokkit.lns get "--trust=tun+\n--trust=eth0.42\n--trust=eth0:1\n" = { "trust" = "tun+" } { "trust" = "eth0.42" } { "trust" = "eth0:1" } (* We didn't allow '-' in the service name *) test Lokkit.lns get "--service=samba-client\n" = { "service" = "samba-client" }