Linux mail.vriendennsm.nl 6.1.0-51-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.177-1 (2026-07-16) x86_64
Apache/2.4.68 (Debian)
Server IP : 217.154.75.17 & Your IP : 216.73.216.195
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
webmin /
net /
Delete
Unzip
Name
Size
Permission
Date
Action
images
[ DIR ]
drwxr-xr-x
2026-07-25 20:55
lang
[ DIR ]
drwxr-xr-x
2026-07-25 20:55
CHANGELOG
5.55
KB
-rw-r--r--
2026-07-17 21:17
acl_security.pl
3.08
KB
-rwxr-xr-x
2026-07-17 21:17
alpine-linux-lib.pl
754
B
-rw-r--r--
2026-07-17 21:17
apply.cgi
299
B
-rwxr-xr-x
2026-07-17 21:22
backup_config.pl
1005
B
-rwxr-xr-x
2026-07-17 21:17
cgi_args.pl
752
B
-rwxr-xr-x
2026-07-17 21:17
cobalt-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
coherent-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
config
48
B
-rw-r--r--
2026-07-17 21:17
config-ALL-linux
48
B
-rw-r--r--
2026-07-17 21:17
config-cygwin
82
B
-rw-r--r--
2026-07-17 21:17
config-freebsd
48
B
-rw-r--r--
2026-07-17 21:17
config-macos
48
B
-rw-r--r--
2026-07-17 21:17
config-netbsd
48
B
-rw-r--r--
2026-07-17 21:17
config-openbsd
48
B
-rw-r--r--
2026-07-17 21:17
config-solaris
79
B
-rw-r--r--
2026-07-17 21:17
config-syno-linux
48
B
-rw-r--r--
2026-07-17 21:17
config-unixware
48
B
-rw-r--r--
2026-07-17 21:17
config-windows
78
B
-rw-r--r--
2026-07-17 21:17
config.info
193
B
-rw-r--r--
2026-07-17 21:17
config.info.ca
241
B
-rw-r--r--
2026-07-17 21:17
config.info.cs
205
B
-rw-r--r--
2026-07-17 21:17
config.info.de
219
B
-rw-r--r--
2026-07-17 21:17
config.info.es
175
B
-rw-r--r--
2026-07-17 21:17
config.info.fa
255
B
-rw-r--r--
2026-07-17 21:17
config.info.fr
246
B
-rw-r--r--
2026-07-17 21:17
config.info.hu
0
B
-rw-r--r--
2026-07-17 21:17
config.info.ja
68
B
-rw-r--r--
2026-07-17 21:17
config.info.nl
197
B
-rw-r--r--
2026-07-17 21:17
config.info.no
208
B
-rw-r--r--
2026-07-17 21:17
config.info.pl
240
B
-rw-r--r--
2026-07-17 21:17
config.info.pt_BR
229
B
-rw-r--r--
2026-07-17 21:17
config.info.ru
361
B
-rw-r--r--
2026-07-17 21:17
config.info.sk
225
B
-rw-r--r--
2026-07-17 21:17
config.info.sv
42
B
-rw-r--r--
2026-07-17 21:17
config.info.tr
65
B
-rw-r--r--
2026-07-17 21:17
config.info.uk
87
B
-rw-r--r--
2026-07-17 21:17
config.info.zh
43
B
-rw-r--r--
2026-07-17 21:17
config.info.zh_TW
44
B
-rw-r--r--
2026-07-17 21:17
create_route.cgi
1004
B
-rwxr-xr-x
2026-07-17 21:22
cygwin-lib.pl
11.29
KB
-rwxr-xr-x
2026-07-17 21:17
debian-linux-lib.pl
31.63
KB
-rwxr-xr-x
2026-07-17 21:17
defaultacl
114
B
-rw-r--r--
2026-07-17 21:17
delete_aifcs.cgi
739
B
-rwxr-xr-x
2026-07-17 21:22
delete_bifcs.cgi
2.09
KB
-rwxr-xr-x
2026-07-17 21:22
delete_hosts.cgi
523
B
-rwxr-xr-x
2026-07-17 21:22
delete_ipnodes.cgi
542
B
-rwxr-xr-x
2026-07-17 21:22
delete_routes.cgi
458
B
-rwxr-xr-x
2026-07-17 21:22
dhcpcd-lib.pl
28.88
KB
-rw-r--r--
2026-07-17 21:17
edit_aifc.cgi
5.36
KB
-rwxr-xr-x
2026-07-17 21:22
edit_bifc.cgi
10.53
KB
-rwxr-xr-x
2026-07-17 21:22
edit_host.cgi
1.13
KB
-rwxr-xr-x
2026-07-17 21:22
edit_ipnode.cgi
1.04
KB
-rwxr-xr-x
2026-07-17 21:22
edit_range.cgi
1.34
KB
-rwxr-xr-x
2026-07-17 21:22
freebsd-lib.pl
19.22
KB
-rwxr-xr-x
2026-07-17 21:17
gentoo-linux-lib.pl
8.47
KB
-rwxr-xr-x
2026-07-17 21:17
ifupdown-lib.pl
3.17
KB
-rw-r--r--
2026-07-17 21:17
index.cgi
1.25
KB
-rwxr-xr-x
2026-07-17 21:22
interface_chooser.cgi
3.8
KB
-rwxr-xr-x
2026-07-17 21:22
linux-lib.pl
32.32
KB
-rwxr-xr-x
2026-07-17 21:17
list_dns.cgi
2.3
KB
-rwxr-xr-x
2026-07-17 21:22
list_hosts.cgi
1.36
KB
-rwxr-xr-x
2026-07-17 21:22
list_ifcs.cgi
7.96
KB
-rwxr-xr-x
2026-07-17 21:22
list_ipnodes.cgi
1.07
KB
-rwxr-xr-x
2026-07-17 21:22
list_routes.cgi
3.38
KB
-rwxr-xr-x
2026-07-17 21:22
log_parser.pl
1.39
KB
-rwxr-xr-x
2026-07-17 21:17
macos-lib.pl
11.58
KB
-rwxr-xr-x
2026-07-17 21:17
mandrake-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
mod_aifc.cgi
720
B
-rwxr-xr-x
2026-07-17 21:22
module.info
498
B
-rw-r--r--
2026-07-17 21:17
module.info.ar
0
B
-rw-r--r--
2026-07-17 21:17
module.info.ar.auto
170
B
-rw-r--r--
2026-07-17 21:17
module.info.bg
0
B
-rw-r--r--
2026-07-17 21:17
module.info.bg.auto
261
B
-rw-r--r--
2026-07-17 21:17
module.info.ca
127
B
-rw-r--r--
2026-07-17 21:17
module.info.ca.auto
25
B
-rw-r--r--
2026-07-17 21:17
module.info.cs
27
B
-rw-r--r--
2026-07-17 21:17
module.info.cs.auto
111
B
-rw-r--r--
2026-07-17 21:17
module.info.da
0
B
-rw-r--r--
2026-07-17 21:17
module.info.da.auto
129
B
-rw-r--r--
2026-07-17 21:17
module.info.de
121
B
-rw-r--r--
2026-07-17 21:17
module.info.de.auto
19
B
-rw-r--r--
2026-07-17 21:17
module.info.el
0
B
-rw-r--r--
2026-07-17 21:17
module.info.el.auto
229
B
-rw-r--r--
2026-07-17 21:17
module.info.es
30
B
-rw-r--r--
2026-07-17 21:17
module.info.es.auto
116
B
-rw-r--r--
2026-07-17 21:17
module.info.eu
0
B
-rw-r--r--
2026-07-17 21:17
module.info.eu.auto
142
B
-rw-r--r--
2026-07-17 21:17
module.info.fa
0
B
-rw-r--r--
2026-07-17 21:17
module.info.fa.auto
194
B
-rw-r--r--
2026-07-17 21:17
module.info.fi
0
B
-rw-r--r--
2026-07-17 21:17
module.info.fi.auto
145
B
-rw-r--r--
2026-07-17 21:17
module.info.fr
30
B
-rw-r--r--
2026-07-17 21:17
module.info.fr.auto
128
B
-rw-r--r--
2026-07-17 21:17
module.info.hr
0
B
-rw-r--r--
2026-07-17 21:17
module.info.hr.auto
148
B
-rw-r--r--
2026-07-17 21:17
module.info.hu
34
B
-rw-r--r--
2026-07-17 21:17
module.info.hu.auto
148
B
-rw-r--r--
2026-07-17 21:17
module.info.it
28
B
-rw-r--r--
2026-07-17 21:17
module.info.it.auto
112
B
-rw-r--r--
2026-07-17 21:17
module.info.ja
33
B
-rw-r--r--
2026-07-17 21:17
module.info.ja.auto
153
B
-rw-r--r--
2026-07-17 21:17
module.info.ko
28
B
-rw-r--r--
2026-07-17 21:17
module.info.ko.auto
105
B
-rw-r--r--
2026-07-17 21:17
module.info.ms
136
B
-rw-r--r--
2026-07-17 21:17
module.info.ms.auto
18
B
-rw-r--r--
2026-07-17 21:17
module.info.nl
29
B
-rw-r--r--
2026-07-17 21:17
module.info.nl.auto
105
B
-rw-r--r--
2026-07-17 21:17
module.info.no
31
B
-rw-r--r--
2026-07-17 21:17
module.info.no.auto
99
B
-rw-r--r--
2026-07-17 21:17
module.info.pl
122
B
-rw-r--r--
2026-07-17 21:17
module.info.pl.auto
19
B
-rw-r--r--
2026-07-17 21:17
module.info.pt
31
B
-rw-r--r--
2026-07-17 21:17
module.info.pt.auto
125
B
-rw-r--r--
2026-07-17 21:17
module.info.pt_BR
34
B
-rw-r--r--
2026-07-17 21:17
module.info.pt_BR.auto
131
B
-rw-r--r--
2026-07-17 21:17
module.info.ru
36
B
-rw-r--r--
2026-07-17 21:17
module.info.ru.auto
167
B
-rw-r--r--
2026-07-17 21:17
module.info.sk
28
B
-rw-r--r--
2026-07-17 21:17
module.info.sk.auto
113
B
-rw-r--r--
2026-07-17 21:17
module.info.sv
31
B
-rw-r--r--
2026-07-17 21:17
module.info.sv.auto
103
B
-rw-r--r--
2026-07-17 21:17
module.info.tr
30
B
-rw-r--r--
2026-07-17 21:17
module.info.tr.auto
130
B
-rw-r--r--
2026-07-17 21:17
module.info.uk
0
B
-rw-r--r--
2026-07-17 21:17
module.info.uk.auto
223
B
-rw-r--r--
2026-07-17 21:17
module.info.zh
21
B
-rw-r--r--
2026-07-17 21:17
module.info.zh.auto
90
B
-rw-r--r--
2026-07-17 21:17
module.info.zh_TW
24
B
-rw-r--r--
2026-07-17 21:17
module.info.zh_TW.auto
96
B
-rw-r--r--
2026-07-17 21:17
msc-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
net-detect.pl
3.47
KB
-rw-r--r--
2026-07-17 21:17
net-lib.pl
13.32
KB
-rwxr-xr-x
2026-07-17 21:17
netbsd-lib.pl
19.22
KB
-rwxr-xr-x
2026-07-17 21:17
netplan-lib.pl
26.1
KB
-rw-r--r--
2026-07-17 21:17
nm-lib.pl
18.13
KB
-rw-r--r--
2026-07-17 21:17
open-linux-lib.pl
7.2
KB
-rwxr-xr-x
2026-07-17 21:17
openbsd-lib.pl
12.61
KB
-rwxr-xr-x
2026-07-17 21:17
openmamba-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
pardus-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
rbac-mapping
180
B
-rw-r--r--
2026-07-17 21:17
rc.inet1
1.95
KB
-rw-r--r--
2026-07-17 21:17
redhat-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
save_aifc.cgi
6.04
KB
-rwxr-xr-x
2026-07-17 21:22
save_bifc.cgi
10.9
KB
-rwxr-xr-x
2026-07-17 21:22
save_dns.cgi
4.24
KB
-rwxr-xr-x
2026-07-17 21:22
save_host.cgi
1.18
KB
-rwxr-xr-x
2026-07-17 21:22
save_ipnode.cgi
1.26
KB
-rwxr-xr-x
2026-07-17 21:22
save_range.cgi
1.42
KB
-rwxr-xr-x
2026-07-17 21:22
save_routes.cgi
283
B
-rwxr-xr-x
2026-07-17 21:22
slackware-linux-9.1-ALL-lib.pl
7.85
KB
-rwxr-xr-x
2026-07-17 21:17
slackware-linux-lib.pl
6.71
KB
-rwxr-xr-x
2026-07-17 21:17
solaris-lib.pl
20.8
KB
-rwxr-xr-x
2026-07-17 21:17
suse-linux-8.0-lib.pl
7.32
KB
-rwxr-xr-x
2026-07-17 21:17
suse-linux-8.2-lib.pl
7.32
KB
-rwxr-xr-x
2026-07-17 21:17
suse-linux-9.0-lib.pl
8.75
KB
-rwxr-xr-x
2026-07-17 21:17
suse-linux-9.1-lib.pl
8.75
KB
-rwxr-xr-x
2026-07-17 21:17
suse-linux-9.2-ALL-lib.pl
11.23
KB
-rwxr-xr-x
2026-07-17 21:17
suse-linux-lib.pl
9.08
KB
-rwxr-xr-x
2026-07-17 21:17
system_info.pl
2.42
KB
-rw-r--r--
2026-07-17 21:17
trustix-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
turbo-linux-lib.pl
33.11
KB
-rwxr-xr-x
2026-07-17 21:17
united-linux-lib.pl
7.32
KB
-rwxr-xr-x
2026-07-17 21:17
unixware-lib.pl
9.91
KB
-rwxr-xr-x
2026-07-17 21:17
windows-lib.pl
11.29
KB
-rwxr-xr-x
2026-07-17 21:17
Save
Rename
#!/usr/bin/perl # edit_bifc.cgi # Edit or create a bootup interface require './net-lib.pl'; &ReadParse(); !$in{'new'} || &can_create_iface() || &error($text{'ifcs_ecannot'}); @boot = &boot_interfaces(); # Show page title and get interface if ($in{'new'} && $in{'bond'}) { # New bonding interface &ui_print_header(undef, $text{'bonding_create'}, ""); $bmax = -1; foreach $b (@boot) { if ($b->{'fullname'} =~ /^bond(\d+)$/) { $bmax = $1; } } } elsif ($in{'new'} && $in{'vlan'}) { # New VLAN &ui_print_header(undef, $text{'vlan_create'}, ""); } elsif ($in{'new'} && $in{'bridge'}) { # New Bridge &ui_print_header(undef, $text{'bridge_create'}, ""); $bmax = -1; foreach $b (@boot) { if ($b->{'fullname'} =~ /^br(\d+)$/) { $bmax = $1; } } } elsif ($in{'new'}) { # New real or virtual interface &ui_print_header(undef, $text{'bifc_create'}, ""); if ($in{'virtual'}) { # Pick a virtual number $vmax = int($min_virtual_number) - 1; foreach my $e (@boot) { $vmax = $e->{'virtual'} if ($e->{'virtual'} ne '' && $e->{'name'} eq $in{'virtual'} && $e->{'virtual'} > $vmax); } } } else { # Editing existing $b = $boot[$in{'idx'}]; &can_iface($b) || &error($text{'ifcs_ecannot_this'}); &ui_print_header(undef, $text{'bifc_edit'}, ""); if (!$b->{'dhcp'} && !$b->{'bootp'} && !$b->{'broadcast'} && !&can_broadcast_def()) { # Fill in broadcast if missing, unless system can compute # it automatically $b->{'broadcast'} = &compute_broadcast( $b->{'address'}, $b->{'netmask'}); } } # Start of the form print &ui_form_start("save_bifc.cgi"); print &ui_hidden("new", $in{'new'}); print &ui_hidden("idx", $in{'idx'}); print &ui_hidden("vlan", $in{'vlan'}); print &ui_hidden("bond", $in{'bond'}); print &ui_hidden("bridge", $in{'bridge'}); print &ui_table_start($in{'virtual'} || $b && $b->{'virtual'} ne "" ? $text{'bifc_desc2'} : $text{'bifc_desc1'}, undef, 2); # Comment, if allowed if (defined(&can_iface_desc) && &can_iface_desc($b)) { print &ui_table_row($text{'ifcs_desc'}, &ui_textbox("desc", $b ? $b->{'desc'} : undef, 60), 3); } # Interface name if ($in{'new'} && $in{'virtual'}) { # New virtual interface $namefield = $in{'virtual'}.":". &ui_textbox("virtual", $vmax+1, 3). &ui_hidden("name", $in{'virtual'}); } elsif ($in{'new'}) { # New real interface if ($in{'vlan'}) { $namefield = "auto".&ui_hidden("name", "auto"); } elsif ($in{'bridge'}) { $namefield = "br ".&ui_textbox("name", ($bmax+1), 3); } elsif ($in{'bond'}) { $namefield = "bond ".&ui_textbox("name", ($bmax+1), 3); } else { $namefield = &ui_textbox("name", undef, 6); } } else { # Existing interface $namefield = "<tt>$b->{'fullname'}</tt>"; } print &ui_table_row($text{'ifcs_name'}, $namefield); # Activate at boot? if (&can_edit("up", $b) && $access{'up'}) { $upfield = &ui_yesno_radio("up", !$b || $b->{'up'}); } else { $upfield = !$b ? $text{'yes'} : $b->{'up'} ? $text{'yes'} : $text{'no'}; } print &ui_table_row($text{'bifc_act'}, $upfield); # IP address source. This can either be DHCP, BootP or a fixed IP, # netmask and broadcast $virtual = (!$b && $in{'virtual'}) || ($b && $b->{'virtual'} ne ""); $dhcp = &can_edit("dhcp") && !$virtual; $bootp = &can_edit("bootp") && !$virtual; if (defined(&supports_no_address) && &supports_no_address()) { # Having no address is allowed $canno = 1; } elsif ($b && !$b->{'address'} && !$b->{'dhcp'} && !$b->{'bootp'}) { # Has no address $canno = 1; } @opts = ( ); if ($canno) { push(@opts, [ "none", $text{'ifcs_noaddress'} ]); } if ($dhcp) { push(@opts, [ "dhcp", $text{'ifcs_dhcp'} ]); } if ($bootp) { push(@opts, [ "bootp", $text{'ifcs_bootp'} ]); } if ($canno) { } @grid = ( $text{'ifcs_ip'}, &ui_textbox("address", $b ? $b->{'address'} : "", 15) ); if ($in{'virtual'} && $in{'new'} && $virtual_netmask) { # Netmask is fixed push(@grid, $text{'ifcs_mask'}, "<tt>$virtual_netmask</tt>"); } elsif (&can_edit("netmask", $b) && $access{'netmask'}) { # Can edit netmask push(@grid, $text{'ifcs_mask'}, &ui_textbox("netmask", $b ? $b->{'netmask'} : $config{'def_netmask'}, 15)); } elsif ($b && $b->{'netmask'}) { # Cannot edit push(@grid, $text{'ifcs_mask'}, "<tt>$b->{'netmask'}</tt>"); } if (&can_edit("broadcast", $b) && $access{'broadcast'}) { # Can edit broadcast address push(@grid, $text{'ifcs_broad'}, &ui_opt_textbox("broadcast", $b ? $b->{'broadcast'} : $config{'def_broadcast'}, 15, $text{'ifcs_auto'})); } elsif ($b && $b->{'broadcast'}) { # Broadcast is fixed push(@grid, $text{'ifcs_broad'}, "<tt>$b->{'broadcast'}</tt>"); } push(@opts, [ "address", $text{'ifcs_static2'}, &ui_grid_table(\@grid, 2) ]); # Show the IP field if (@opts > 1) { print &ui_table_row($text{'ifcs_mode'}, &ui_radio_table("mode", $b && $b->{'dhcp'} ? "dhcp" : $b && $b->{'bootp'} ? "bootp" : $b && !$b->{'address'} ? "none" : "address", \@opts), 3); } else { print &ui_table_row($opts[0]->[1], $opts[0]->[2]); } # Show the IPv6 field if (&supports_address6($b)) { # Multiple IPs allowed $table6 = &ui_columns_start([ $text{'ifcs_address6'}, $text{'ifcs_netmask6'} ], 50); for($i=0; $i<=($b ? scalar(@{$b->{'address6'}}) : 0); $i++) { $table6 .= &ui_columns_row([ &ui_textbox("address6_$i", $b->{'address6'}->[$i], 40), &ui_textbox("netmask6_$i", $b->{'netmask6'}->[$i] || 64, 10) ]); } $table6 .= &ui_columns_end(); print &ui_table_row($text{'ifcs_mode6'}, &ui_radio_table("mode6", !$b ? "none" : $b->{'auto6'} ? "auto" : @{$b->{'address6'}} ? "address" : "none", [ [ "none", $text{'ifcs_none6'} ], [ "auto", $text{'ifcs_auto6'} ], [ "address", $text{'ifcs_static2'}, $table6 ] ]), 2); } # MTU if (&can_edit("mtu", $b) && $access{'mtu'}) { $mtufield = &ui_opt_textbox( "mtu", $b ? $b->{'mtu'} : $config{'def_mtu'}, 8, $text{'default'}); } else { $mtufield = $b && $b->{'mtu'} ? $b->{'mtu'} : undef; } if ($mtufield) { print &ui_table_row($text{'ifcs_mtu'}, $mtufield); } # Virtual sub-interfaces if ($b && $b->{'virtual'} eq "" && !$in{'new'}) { $vcount = 0; foreach $vb (@boot) { if ($vb->{'virtual'} ne "" && $vb->{'name'} eq $b->{'name'}) { $vcount++; } } $vlink = ""; if ($access{'virt'} && !$noos_support_add_virtifcs) { $vlink = &ui_element_inline("(<a href='edit_bifc.cgi?new=1&virtual=$b->{'name'}'>". "$text{'ifcs_addvirt'}</a>)\n", 'button'); } print &ui_table_row($text{'ifcs_virts'}, &ui_text_wrap($vcount)." ".$vlink); } # Special parameters for teaming if ($in{'bond'} || &iface_type($b->{'name'}) eq 'Bonded') { # Select bonding teampartner print &ui_table_row($text{'bonding_teamparts'}, &ui_textbox("partner", $b->{'partner'}, 10)." ".$text{'bonding_teampartsdesc'}); # Select teaming mode @mode = ("balance-rr", "activebackup", "balance-xor", "broadcast", "802.3ad", "balance-tlb", "balance-alb"); print &ui_table_row($text{'bonding_teammode'}, &ui_select("bondmode", int($b->{'mode'}), [ map { [ $_, $mode[$_] ] } (0 .. $#mode) ])); # Select bonding primary interface print &ui_table_row($text{'bonding_primary'}, &ui_textbox("primary", $b->{'primary'}, 5)." ".$text{'bonding_primarydesc'}); # Select mii Monitoring Interval print &ui_table_row($text{'bonding_miimon'}, &ui_textbox("miimon", $b->{'miimon'} ? $b->{'miimon'} : "100", 5)." ms ".$text{'bonding_miimondesc'}); # Select updelay print &ui_table_row($text{'bonding_updelay'}, &ui_textbox("updelay", $b->{'updelay'} ? $b->{'updelay'} : "200", 5)." ms"); # Select downdelay print &ui_table_row($text{'bonding_downdelay'}, &ui_textbox("downdelay", $b->{'downdelay'} ? $b->{'downdelay'} : "200", 5)." ms"); } # Special Parameter for vlan tagging if ($in{'vlan'} || &iface_type($b->{'name'}) =~ /^(.*) (VLAN)$/) { $b->{'name'} =~ /(\S+)\.(\d+)/; $physical = $1; $vlanid = $2; # Phyical device @phys = grep { (($_->{'virtual'} eq '') && ($_->{'vlanid'} eq '')) } &active_interfaces(1); print &ui_table_row($text{'vlan_physical'}, $in{'new'} ? &ui_select("physical", $physical, [ map { $_->{'fullname'} } @phys ]) : $physical.&ui_hidden("physical", $physical)); # VLAN ID print &ui_table_row($text{'vlan_id'}, $in{'new'} ? &ui_textbox("vlanid", $vlanid, 10) : $vlanid.&ui_hidden("vlanid", $vlanid)); } # Hardware address, if non-virtual if (($in{'new'} && $in{'virtual'} eq "" && !$in{'bridge'}) || (!$in{'new'} && $b->{'virtual'} eq "" && defined(&boot_iface_hardware) && &boot_iface_hardware($b->{'name'}))) { $hardfield = &ui_opt_textbox("ether", $b->{'ether'}, 30, $text{'aifc_default'}); print &ui_table_row($text{'aifc_hard'}, $hardfield); } # Real interface for bridge if ($in{'bridge'} || $b && $b->{'bridge'}) { @ethboot = sort { $a cmp $b } map { $_->{'fullname'} } grep { ($_->{'fullname'} =~ /^(vlan|bond)/ || &iface_type($_->{'fullname'}) eq 'Ethernet') && $_->{'virtual'} eq '' } @boot; print &ui_table_row($text{'bifc_bridgeto'}, &ui_select("bridgeto", $b->{'bridgeto'}, [ [ "", $text{'bifc_nobridge'} ], @ethboot ], 1, 0, $in{'new'} ? 0 : 1)); if (&can_edit("bridgestp")) { print &ui_table_row($text{'bifc_bridgestp'}, &ui_radio("bridgestp", $b->{'bridgestp'} || "off", [["off", "Off"], ["on", "On"]])); } if (&can_edit("bridgefd")) { print &ui_table_row($text{'bifc_bridgefd'}, &ui_textbox("bridgefd", $b->{'bridgefd'} || "0", 3). " seconds"); } if (&can_edit("bridgewait")) { print &ui_table_row($text{'bifc_bridgewait'}, &ui_textbox("bridgewait", $b->{'bridgewait'} || "0", 3). " seconds"); } } print &ui_table_end(); # Generate and show buttons at end of the form @buts = ( ); if ($access{'bootonly'}) { # Can only save both boot-time and active if ($in{'new'}) { push(@buts, [ "activate", $text{'bifc_capply'} ]); } else { push(@buts, [ "activate", $text{'bifc_apply'} ]); if ($access{'delete'}) { push(@buts, [ "unapply", $text{'bifc_dapply'} ]); } } } else { # Show buttons to save both boot-time and/or active if ($in{'new'}) { push(@buts, [ undef, $text{'create'} ]); push(@buts, [ "activate", $text{'bifc_capply'} ]); } else { push(@buts, [ undef, $text{'save'} ]) unless $always_apply_ifcs; if (!($b->{'bootp'} || $b->{'dhcp'}) || defined(&apply_interface)) { push(@buts, [ "activate", $text{'bifc_apply'} ]); } if ($access{'delete'}) { push(@buts, [ "unapply", $text{'bifc_dapply'} ]); push(@buts, [ "delete", $text{'delete'} ]) unless $noos_support_delete_ifcs; } } } print &ui_form_end(\@buts); &ui_print_footer("list_ifcs.cgi?mode=boot", $text{'ifcs_return'});