Commit Graph

22385 Commits

Author SHA1 Message Date
Ermal
baec2b007f Properly create zones for the CP with the new command arguments and properly invoke ipfw for applying rules and other configuration options. 2013-11-21 21:18:00 +00:00
Ermal
fc5a4f3c22 Remove maximumtables even from the GUI since there is no option 2013-11-21 17:35:05 +00:00
Renato Botelho
d3b17c9a0b Fix #3331. Set interface subnet as destination when VIP is in the same subnet, otherwise use VIP subnet instead of IP address 2013-11-21 13:57:34 -02:00
Ermal
f7ec7bf9d1 FreeBSD 10 pf does not have a limit for table entries 2013-11-21 13:58:38 +00:00
Ermal Luçi
e6000a9bc6 Merge pull request #857 from Wraul/add_city_network_dyndns
Added support for City Network to Dynamic DNS.
2013-11-21 05:14:13 -08:00
Renato Botelho
23d9f68660 Fix an issue that changes wrong gateway entry when items are hidden 2013-11-21 09:37:02 -02:00
jim-p
33e71f1087 Don't flush interface cache on each call of the function when looping through all gateways. 2013-11-20 15:56:29 -05:00
Renato Botelho
e924cd7eb2 Add hability to insert after, reorder, batch delete and enable/disable to 1:1 NAT rules. It fixes #3327 2013-11-20 15:20:01 -02:00
Renato Botelho
a0e1f0f1e3 We do not need 2 variables to do the same thing, simplify it a bit 2013-11-20 15:16:25 -02:00
Renato Botelho
d39ed8c387 Fix whitespaces and indent 2013-11-20 14:05:59 -02:00
Renato Botelho
bb0469f2be Fix whitespaces and indent 2013-11-20 12:01:14 -02:00
Renato Botelho
858211ddde Improve text on outbound NAT page to reflect last changes, it should fix #2416 2013-11-19 08:45:22 -02:00
Renato Botelho
1b4a0d7917 Fix a wrong } left on my last commit 2013-11-19 08:43:25 -02:00
Renato Botelho
aef6978de7 Try to detect already automatically created outbound NAT rules and avoid duplicating them. Also automatically create rules when switching from hybrid to manual. Ticket #2416 2013-11-19 08:35:18 -02:00
Renato Botelho
6f61fea641 Use the same code to automatically create outbound NAT rules when mode change to manual, ticket #2416 2013-11-18 15:26:51 -02:00
Renato Botelho
e47914184a Add gettext() to recently added strings 2013-11-18 15:24:31 -02:00
Renato Botelho
3bb23264e1 Add an option to return outbound NAT automatic to nat hosts with description, ticket #2416 2013-11-18 15:09:13 -02:00
Renato Botelho
9bed0fcd6d Add subnet to 0.0.0.0 otherwise it's not added to table, ticket #2416 2013-11-18 10:09:13 -02:00
Renato Botelho
c437485d01 Make sure automatic rules are created even if mode is not set, ticket #2416 2013-11-18 09:56:22 -02:00
Renato Botelho
7997ed4440 Many fixes on privileges, ticket #3216:
- Rename some privileges:
   page-diag-system-activity => page-diagnostics-system-activity
   page-interfacess-groups => page-interfaces-groups
   page-interfacess-lagg => page-interfaces-lagg
   page-interfacess-qinq => page-interfaces-qinq
- Write an upgrade function to replace above privileges by the new name
- Remove unused privilege page-diagnostics-logs-wireless
- Remove duplicated privileges
- Fix limiter-info, pf-info and system-pftop that were using wrong name
- Add privs for edit pages (interfaces_groups, interfaces_lagg,
  interfaces_qinq and services-igmpproxy)
- Fix ID for acptiveportal allowedhostnames and editallowedhostnames
- Fix some wrong matches
2013-11-15 19:21:18 -02:00
Renato Botelho
2d845db7b8 Merge pull request #855 from ExolonDX/branch_01
Tidy up the "Helper Icons"
2013-11-15 10:20:24 -08:00
Mathias Andersson
2206f1b90f Added support for City Network to Dynamic DNS.
City Network is a Swedish web hosting company.
They provide a dynamic DNS service for their customers.
This service uses the dyndns2 protocol.
2013-11-14 22:06:03 +01:00
Renato Botelho
a2f0b7c13f Move automatic rules to a separate table, ticket #2416 2013-11-14 16:28:06 -02:00
Renato Botelho
2b41df9c4d Provide a more safe way to avoid pw userdel being interactive because of a crontab existance 2013-11-14 15:54:05 -02:00
Renato Botelho
0f84dee3eb Revert "local_sync_accounts: provides empty STDIN to pw userdel command"
This reverts commit c6b156bfa5.
2013-11-14 15:54:05 -02:00
Renato Botelho
33bcbe5a29 Merge pull request #856 from ExolonDX/branch_02
Tidy up "interface_statistics.widget.php"
2013-11-14 09:38:38 -08:00
Renato Botelho
bef388a70d Show advanced outbound rules and inform user what are being used and what are being ignored. It should fix #2416 2013-11-14 12:37:32 -02:00
Renato Botelho
3afcc2380e Split automatic to nat hosts fill into a function to be able to call it from other place, ticket #2416 2013-11-14 12:34:34 -02:00
Colin Fleming
94c52ff8d8 Tidy up "interface_statistics.widget.php"
Remove padding surrounding the main table, makes the widget have the
same "look and feel" as the other widgets.
2013-11-14 13:48:15 +00:00
Colin Fleming
17b8c60a39 Tidy up the "Helper Icons"
The "Helper Icons" at the top right of some service pages at present
produces 30+ HTML errors/warnings, this is due to the table cell being
wrapped in a span statement then in a div statement, table cells can
only be part of a table row then within a table statement.

- remove the table cell definitions from /etc/inc/service-utils.inc
- add the table cell definition from /etc/inc/service-utils.inc to
/usr/local/www/status_services.php and add some logic to determine if
the service is running which will then determine which class statement
to use and pad the icon with a space
- apply the same table cell definition and logic as above to
/usr/local/www/widgets/widgets/services_status.widget.php
2013-11-14 13:44:59 +00:00
Renato Botelho
c39c8b8ffc Remove unused variables and fix automatic nat to alias-address 2013-11-14 10:38:37 -02:00
Renato Botelho
34f9597749 Merge pull request #854 from icyfork/provides_empty_STDIN_to_pw_command
local_sync_accounts: provides empty STDIN to pw userdel command
2013-11-14 02:19:15 -08:00
Renato Botelho
eef01b14df Add hybrid and disabled outbound NAT, fixes #2416:
- Add 2 new outbound NAT modes, hybrid and disabled, manual and advanced
  keep working the same way
- Hybrid mode applies manual rules first, automatic after
- Disabled do no create any outbound NAT rules
- Remove ipsecpassthru config field and rename advancedoutbound to
  outbound
- Save mode on $config['nat']['outbound']['mode'] to simplify the logic
- Modify config.default to reflect changes
- Add code to upgrade config, and change latest_version to 10.3
- Use html to align modes and remove some hacks to align using  
2013-11-13 07:45:09 -02:00
Renato Botelho
d5ab3af4e2 Fix whitespaces and indent 2013-11-12 21:52:48 -02:00
Ky-Anh Huynh
c6b156bfa5 local_sync_accounts: provides empty STDIN to pw userdel command
The /usr/sbin/pw command may wait for user input. For example,
if there is a manual crontab settings for :foobar account, then
when this account is requested to be deleted, the command will
ask if user wants to delete crontab settings for the account.

Because the command waits for user input, the boot process will
hang at the "Synchronizing user settings..." step, unless user
presses any key.

To avoid this problem, we use the /bin/echo command to give
empty input for /usr/bin/pw command. This is an alternative of
typing "no" or "n".

This is a not the best way. Maybe closing STDIN is good. Or
force users to change account settings from webUI.

See also #852 (pull request). Renato Botelho points out that
"pw userdel" will call "crontab -u %user -r" that is interative.
"pw groupdel" will never be interative, though.
2013-11-13 06:29:53 +07:00
Renato Botelho
858f313d76 Fix indent, whitespaces and a close a couple of unbalanced tags 2013-11-12 17:46:43 -02:00
Renato Botelho
7facbef711 Merge pull request #850 from phil-davis/master
Handle comma-separated list of remote networks when making vpn_networks table
2013-11-12 09:05:46 -08:00
Renato Botelho
c4421dfa4f Add an option to set no-sync on rules to keep states from being synced via pfsync. Fix #2501 2013-11-12 10:45:29 -02:00
Renato Botelho
d60ba07819 Merge pull request #831 from ExolonDX/branch_06
Tidy up "diag_logs_filter_summary.php" XHTML
2013-11-11 14:16:02 -08:00
Renato Botelho
454e09bd9d Merge pull request #829 from ExolonDX/branch_04
Tidy up "diag_logs_filter.php" XHTML
2013-11-11 14:15:46 -08:00
jim-p
6186cdc4be Rework the usage of the shell i/o during stop_packages(), fixes the "Syntax error: bad fd number" for the remaining people who still saw it on shutdown 2013-11-11 16:29:07 -05:00
jim-p
629f07c331 This tag could be present, but empty. Skip processing if the interface has no IP address. 2013-11-11 13:12:01 -05:00
jim-p
63f7282808 If the interface is configured and not enabled, bail. We do not need to change settings for disabled interfaces. Fixes #3313 2013-11-11 13:10:32 -05:00
Renato Botelho
f70121be36 Fix #3298 and few other fixes:
. Check for fixed array keys (pkg_categories_min_count,
  pkg_categories_max_display and pkg_default_categories) instead of
  undeclared variables
. Add a new default category "All"
. Use proper class on 'Category' columns when it is visible
. Increase Description column size instead of Name when Category is not
  visible
. Fix php short tags
2013-11-11 10:57:24 -02:00
Renato Botelho
2984054690 Fix indent and whitespaces 2013-11-11 10:19:50 -02:00
Renato Botelho
e09fcde567 Merge pull request #844 from ExolonDX/branch_20
Tidy up "diag_logs_openvpn.php" XHTML
2013-11-11 03:19:09 -08:00
Renato Botelho
4f3d30527d Merge pull request #843 from ExolonDX/branch_19
Tidy up "diag_logs.php" XHTML
2013-11-11 03:18:51 -08:00
Renato Botelho
5f8fc8d898 Merge pull request #842 from ExolonDX/branch_17
Tidy up "diag_logs_wireless.php" XHTML
2013-11-11 03:18:34 -08:00
Renato Botelho
ad4114375a Merge pull request #841 from ExolonDX/branch_16
Tidy up "diag_logs_vpn.php" XHTML
2013-11-11 03:18:17 -08:00
Renato Botelho
d869c81329 Merge pull request #840 from ExolonDX/branch_15
Tidy up "diag_logs_settings.php" XHTML
2013-11-11 03:17:45 -08:00