Netgate SG-1000 microFirewall

Author Topic: How to create .txz in FreeBSD & transfer it to pfSense?  (Read 802 times)

0 Members and 1 Guest are viewing this topic.

Offline olifka-kun

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to create .txz in FreeBSD & transfer it to pfSense?
« on: January 27, 2017, 02:40:28 pm »
Hello everyone!

Google can't help me with information I need, so I decided to ask here.

I need to compile squid from source with special parameteres and transfer it to pfSense. I have no idea how to make it in a proper way.

Google says only about building packages from ports, but not about how to create it from source. "make" -> "make package" doesn't work.

If you know web-sites with description of this question or you have instruction, please help.
« Last Edit: January 27, 2017, 03:05:25 pm by olifka-kun »

Offline heper

  • Hero Member
  • *****
  • Posts: 2602
  • Karma: +244/-10
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #1 on: January 27, 2017, 02:53:57 pm »
https://doc.pfsense.org/index.php/Developing_Packages
Code: [Select]
$ git clone git@github.com:pfsense/FreeBSD-ports.git pfSense-ports
$ cd pfSense-ports/blah/pfSense-pkg-foo/
[hack, hack, hack]
$ make package  (might need sudo)
$ scp work/pkg/pfSense-pkg-foo* root@myfirewall:.

Offline olifka-kun

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #2 on: January 27, 2017, 02:59:47 pm »
I've already tryed to do it. It's not gonna work in that way. What do you mean by [hack hack hack]? I need more details about this.

Offline KOM

  • Hero Member
  • *****
  • Posts: 5199
  • Karma: +644/-18
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #3 on: January 27, 2017, 03:10:52 pm »
[hack hack hack] = do developer stuff here = write your package

For what it's worth, I think you might be wasting your time.  Even if you managed to cobble something together and somehow integrate it with WebGUI, it would likely be blown away at your next upgrade.

Why not just build your custom squid on a Linux box and use that as your proxy?

Offline olifka-kun

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #4 on: January 27, 2017, 03:22:49 pm »
Ok, I explain my situation: I have special hardware, wich works only with pfsense. I need squid.conf unbended from WebUI (my idea was to use ./configure --sysconfdir=/etc/squid/...) and have version 4.0.9 (for example).

I compiled it in FreeBSD, but I have no idea how to transfer all stuff to pfSense.

I know how to create .deb pack in Debian, or how to do the same in Slack by makepkg. Please tell, is there any way to do the thing I'm asking about in this satanic FreeBSD?
« Last Edit: January 27, 2017, 03:36:58 pm by olifka-kun »

Offline KOM

  • Hero Member
  • *****
  • Posts: 5199
  • Karma: +644/-18
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #5 on: January 27, 2017, 03:35:57 pm »
I have no knowledge to help you with, sorry.

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8224
  • Karma: +866/-231
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #6 on: January 27, 2017, 04:30:42 pm »
If you do not want the webgui, just don't install it.

Code: [Select]
pkg remove pfSense-pkg-squid
pkg install squid
Do NOT PM for help!

Offline olifka-kun

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #7 on: January 28, 2017, 01:46:13 am »
Thank you, doktornotor, good idea, but main question is in the subject.

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8224
  • Karma: +866/-231
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #8 on: January 28, 2017, 03:10:22 am »
I cannot help you with that. If you want squid-devel (i.e., 4.0.x) and no GUI, perhaps play with pfSense 2.4 and install squid-devel from FreeBSD repo.
Do NOT PM for help!

Offline olifka-kun

  • Newbie
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #9 on: January 28, 2017, 07:08:06 am »
Anyway, thak you for the answers.

Offline renato.nogueira

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #10 on: April 20, 2017, 03:57:32 pm »
If you do not want the webgui, just don't install it.

Code: [Select]
pkg remove pfSense-pkg-squid
pkg install squid

Can i remove the gui from 2.1.1?

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8224
  • Karma: +866/-231
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #11 on: April 20, 2017, 04:10:04 pm »
2.1.1 is what? pfSense version? In that case I'd suggest to use something actually supported.

https://doc.pfsense.org/index.php/Versions_of_pfSense_and_FreeBSD
Do NOT PM for help!

Offline renato.nogueira

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #12 on: April 20, 2017, 04:21:45 pm »
If you do not want the webgui, just don't install it.

Code: [Select]
pkg remove pfSense-pkg-squid
pkg install squid

sorry, the pfsense is 2.0.1

Offline renato.nogueira

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #13 on: April 20, 2017, 04:27:35 pm »
2.1.1 is what? pfSense version? In that case I'd suggest to use something actually supported.

https://doc.pfsense.org/index.php/Versions_of_pfSense_and_FreeBSD

I am trying to do squid 3.5.23 to authenticate in pf 2.3.3 but i canīt. There is a site https://pf2ad.mundounix.com.br/pt/index.html that have a script which installs samba and integrate the pfsense in AD to use NTLM_AUTH. but squid 3.5.23 has no wbinfo_group compiled. I tried negotiate_kerberos_auth and negotiate_wrapper_auth but the squid tell it didnīt know the auth types. I am trying get the groups of AD.

Offline doktornotor

  • Hero Member
  • *****
  • Posts: 8224
  • Karma: +866/-231
  • Not a pfSense employee, they cannot fire me...
    • View Profile
Re: How to create .txz in FreeBSD & transfer it to pfSense?
« Reply #14 on: April 21, 2017, 05:04:11 am »
If you do not want the webgui, just don't install it.

Code: [Select]
pkg remove pfSense-pkg-squid
pkg install squid

sorry, the pfsense is 2.0.1

Do NOT PM for help!