OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of iosense »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - iosense

Pages: [1]
1
Development and Code Review / user limitations
« on: February 10, 2016, 12:50:33 pm »
Hi folks, There is a problem associated with user limits in my mind.

How to limit users who connect via LAN port?

I just want 50 people to have access to the internet via Captive Portal (LAN port).

Is there a build-in function to be used for this purpose?

2
15.7 Legacy Series / [SOLVED] Transparent Proxy and Captive Portal Authentication
« on: February 06, 2016, 09:49:12 am »
I have only "redirect traffic to proxy" NAT rule and this is not working properly with Captive Portal.
Traffic is not routed to the Captive Portal Login page.

How do I do that?

In addition, HTTPS traffic is not working at all, this is a separate issue!

Code: [Select]
# Ports     IP          Ports   Description
80 (HTTP)   127.0.0.1   3128    redirect traffic to proxy

3
Development and Code Review / [SOLVED] interesting issue while building the base package (15.7.25)
« on: January 24, 2016, 04:06:48 pm »
I update my packages to the latest version ( 15.7.22 to 15.7.25 ) and I need to rebuild the base and the kernel package but I'm getting an error as follows, creating a base package:


Code: [Select]
===> usr.bin/tftp (depend)
===> usr.bin/time (depend)
===> usr.bin/tip (depend)
===> usr.bin/tip/tip (depend)
===> usr.bin/top (depend)
Making top.local.h from /vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.H
rm -f .depend
CC='cc ' mkdep -f .depend -a    -DHAVE_GETOPT -DHAVE_STRERROR -DORDER -I/vagrant/opnsense/src/usr.bin/top -I/vagrant/opnsense/src/usr.bin/top/../../contrib/top -I. -DNDEBUG -std=gnu99   /vagrant/opnsense/src/usr.bin/top/../../contrib/top/commands.c /vagrant/opnsense/src/usr.bin/top/../../contrib/top/display.c /vagrant/opnsense/src/usr.bin/top/machine.c /vagrant/opnsense/src/usr.bin/top/../../contrib/top/screen.c /vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.c /vagrant/opnsense/src/usr.bin/top/../../contrib/top/username.c /vagrant/opnsense/src/usr.bin/top/../../contrib/top/utils.c /vagrant/opnsense/src/usr.bin/top/../../contrib/top/version.c
In file included from /vagrant/opnsense/src/usr.bin/top/../../contrib/top/display.c:40:
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:66:5: error: invalid token at start of a preprocessor expression
#if RANDOM_PW == 0
    ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:65:19: note: expanded from macro 'RANDOM_PW'
#define RANDOM_PW       %random%
                        ^
1 error generated.
In file included from /vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.c:49:
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:66:5: error: invalid token at start of a preprocessor expression
#if RANDOM_PW == 0
    ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:65:19: note: expanded from macro 'RANDOM_PW'
#define RANDOM_PW       %random%
                        ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.c:183:5: error: invalid token at start of a preprocessor expression
#if Default_TOPN == Infinity
    ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:46:22: note: expanded from macro 'Default_TOPN'
#define Default_TOPN    %topn%
                        ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.c:457:5: error: invalid token at start of a preprocessor expression
#if Default_TOPN == Infinity
    ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:46:22: note: expanded from macro 'Default_TOPN'
#define Default_TOPN    %topn%
                        ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.c:550:5: error: invalid token at start of a preprocessor expression
#if Default_TOPN == Infinity
    ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:46:22: note: expanded from macro 'Default_TOPN'
#define Default_TOPN    %topn%
                        ^
4 errors generated.
In file included from /vagrant/opnsense/src/usr.bin/top/../../contrib/top/username.c:38:
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:66:5: error: invalid token at start of a preprocessor expression
#if RANDOM_PW == 0
    ^
/vagrant/opnsense/src/usr.bin/top/../../contrib/top/top.local.h:65:19: note: expanded from macro 'RANDOM_PW'
#define RANDOM_PW       %random%
                        ^
1 error generated.
mkdep: compile failed
*** [.depend] Error code 1

make[4]: stopped in /vagrant/opnsense/src/usr.bin/top
1 error

make[4]: stopped in /vagrant/opnsense/src/usr.bin/top
*** [depend_subdir_top] Error code 2

make[3]: stopped in /vagrant/opnsense/src/usr.bin
1 error

make[3]: stopped in /vagrant/opnsense/src/usr.bin
*** [usr.bin.depend__D] Error code 2

make[2]: stopped in /vagrant/opnsense/src
1 error

make[2]: stopped in /vagrant/opnsense/src
*** [_depend] Error code 2

make[1]: stopped in /vagrant/opnsense/src
1 error

make[1]: stopped in /vagrant/opnsense/src
*** [buildworld] Error code 2

make: stopped in /vagrant/opnsense/src
1 error

make: stopped in /vagrant/opnsense/src
*** Error code 2

Stop.
make: stopped in /vagrant/opnsense/tools

What could be missing?

4
Development and Code Review / Captive Portal , Transparent Proxy and HTTPS traffic
« on: January 19, 2016, 12:42:23 am »
Captive Portal and Transparent Proxy works well with HTTP traffic. You can see the rules below.
but unfortunately it does not work with https traffic.

How do I set Captive portal and https traffic with Transparent Proxy ?

Code: [Select]
Firewall: NAT: Port Forward rules

If  Proto Address Ports Address Ports     IP        Ports Description
LAN TCP   LAN net *     *       80 (HTTP) 127.0.0.1 3128  redirect traffic to proxy

5
Development and Code Review / Cron job for my custom module
« on: December 28, 2015, 11:37:40 am »
Hi,

I'd like to find a way to define a cron job to my custom module.
Basically I want to run a service for a certain period of time.
e.g:
I want to run the following command every 3600 seconds.
Code: [Select]
# configctl mymodule mycronjob

btw. I have already read the Creating the hello world module. ( https://wiki.opnsense.org/index.php/Develop:Creating_the_hello_world_module ) but I could not find a title on a cron job.

Thank you in advance for your help.

6
Development and Code Review / [SOLVED] Timezone issue
« on: November 20, 2015, 12:48:17 pm »
Hey folks,

I started to get interesting error related to the timezone :(

Quote
Warning: file_notice(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone "UTC" for now, but please set date.timezone to select your timezone. in /usr/local/etc/inc/notices.inc on line 69

Fatal error: Call to undefined function log_error() in /usr/local/etc/inc/notices.inc on line 69

opnsense is not working properly,  How can I resolve this error.

Thank you.

7
Development and Code Review / [SOLVED] How do I set the development environment?
« on: September 16, 2015, 08:47:59 am »
Hi, I'm reading the documents a few days and trying to find the most appropriate method for development.

I love to use Vagrant(https://www.vagrantup.com/), and convenience that it provides.

I've set up a simple way with FreeBSD 10.1 Vagrant ( FreeBSD 10.1 i386 (UFS, VirtualBox Guest Additions 4.3.20, Python 2.7, Perl 5.18) https://github.com/arkadijs/vagrant-freebsd ) and clone whole OPNsense git repo into opnsense folder.( see folder structure: https://dl.dropboxusercontent.com/u/37848856/vagrant-opnsense.jpg ) These folders synced to the system as follows:

Code: [Select]
config.vm.synced_folder "./opnsense/core", "/usr/core", :nfs => true, id: "opnsense-core"
config.vm.synced_folder "./opnsense/plugins", "/usr/plugins", :nfs => true, id: "opnsense-plugins"
config.vm.synced_folder "./opnsense/ports", "/usr/ports", :nfs => true, id: "opnsense-ports"
config.vm.synced_folder "./opnsense/src", "/usr/src", :nfs => true, id: "opnsense-src"
config.vm.synced_folder "./opnsense/tools", "/usr/tools", :nfs => true, id: "opnsense-tools"

so, we are able to access these folders from a shell screen as shown below:

Code: [Select]
$ cd /usr/core
$ cd /usr/plugins
$ cd /usr/ports
$ cd /usr/src
$ cd /usr/tools

I used the following command as specified in the document:

Code: [Select]
$ cd /usr/core
$ sudo make mount

warning: refname '15.7.12' is ambiguous.
warning: refname '15.7.12' is ambiguous.
mount_unionfs /usr/core/src /usr/local

but I do not think that this is enough, so it seems like the opnsense is not working.

and the following question is; how can i make it work ?

My aim is simply to make some adjustments on the GUI

Thank you.

8
General Discussion / Simple interface with Angular
« on: September 10, 2015, 01:48:02 pm »
Hello,

I would like to simplify the interface a bit for our clients. in fact they do not need so many features and so many settings complicate their use.

I need a little editing interface for easy operation. Apparently, It seems possible with this RestAPI and MVC infrastructure, problem is that there is no detailed information about it. You tell me where to start should be enough even for me now.

I also have experience in javascript frameworks like AngularJS, Backbone, React etc. If I can prepare a simple interface using angular, it will be easier for me.

Also I do not want to change anything hardcode. I keep track of updates and also I want to use the existing interface. just Clients can not access it.

Thank you for your hard work.

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2021 All rights reserved
  • SMF 2.0.17 | SMF © 2019, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2