Menu

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.

Show posts Menu

Topics - bongo

#21
German - Deutsch / FTP Verbindung zwischen Subnetzen
November 16, 2020, 09:11:35 PM
im subnetz 192.168.1.x auf rechner 192.168.1.21 läuft auf einem windows 10 rechner der windows 10 ftp server, welcher sowohl über port 21 als auch über ein paar weitere ports angesprochen werden kann (zur separierung der ftp verzeichnisse auf dem server werden verschiedene ports verwendet).
innerhalb des subnetzes ist der zugriff auf den server kein problem.
nun muss ich aber mit einem rechner im subnetz 10.1.1.x (auf separatem lan interface von opnsense) ebenfalls auf den ftp server zugreifen.
ich hab schon einige opnsense firewall einstellungen versucht, kriege die verbindung aber nicht stabil (für passiv mode).
wie muss ich die opnsense konfigurieren um von
10.1.1.34 (am interface2) auf 192.168.1.21 (am interface1) eine ftp verbindung aufzubauen?

mit "Packet Capture" sehe ich dass daten hin und her geschickt werden zwischen den beiden IPs, filezilla meldet auf 10.1.1.34 aber stets "verzeichnis konnte nicht empfangen werden".

#22
German - Deutsch / zugriff vom WAN auf rechner im LAN
November 10, 2020, 07:30:47 PM
ich verwende OPNSense um den "privaten" teil des netzes vom "etwas öffentlicheren" teil zu trennen.
das heisst während die meisten rechner LAN seitig an OPNSense hängen hat's auch rechner auf der WAN seite.

ich möchte nun von einem der rechner auf der WAN seite mittels VNC auf einen rechner im LAN zugreifen.
bei meiner alten firewall lösung geschah dies mittels destination NAT, d.h. ein bestimmter port (z.b. 5911) der firewall wurde auf den VNC port des internen rechners (<IP vnc server>:5900) umgeleitet, wobei von aussen nur die firewall zu sehen war. es wurde von aussen also eine verbindung auf <firewall>:5911 aufgebaut und <IP vnc server> blieb verborgen.

nun versuche ich etwas änliches mit OPNSense zu konfigurieren. ich bin davon ausgegangen dass ich dies mit port forward machen muss. dies habe ich entsprechend konfiguriert, sehe nun aber dass dadurch vom rechner im WAN nicht eine verbindung auf die firewall, sondern durch die firewall hindurch auf <IP vnc server> geschaltet wird. jedenfalls wird dies so im log der firewall dargestellt.
die so geschaltete verbindung wird nun aber von der firewall geblockt aufgrund der automatischen regel "Block private networks from WAN_UpLink". das port forward hat zwar automatisch eine regel erstellt für den verkehr vom rechner im WAN zu <IP vnc server>:5900, diese kommt aber stets nach der automatischen blockierregel und kommt somit gar nie zum zug.

ein workaround wäre allenfalls, die automatische regel "Block private networks from WAN_UpLink" auszuschalten und eine entsprechende manuelle regel zu definieren welche tiefere prio hat als diejenige für den zugriff auf <IP vnc server>:5900. ich frage mich allerdings ob das eine saubere lösung ist.
lieber würde ich eigentlich den <IP vnc server> im netz verstecken und von aussen bloss die IP von OPNSense sichtbar machen.

wie gehe ich da am besten vor und macht das so überhaupt sinn?

vielen dank!
#23
German - Deutsch / zugriff von LAN B auf LAN A erlauben
October 28, 2020, 05:52:20 PM
ich habe 2 LANs welche über's WAN ins internet gehen.
im LAN A laufen mehrere webserver welche intern von rechnern im LAN A verwendet werden.
einzelne rechner im LAN B sollen nun auch zugriff auf diese webserver erhalten. dabei ist es für mich egal, welche IP oder welchen port ich dabei verwenden muss, wichtig ist einfach dass ich letztlich vom LAN B aus auf port 80 dieser server zugreife.
wie muss ich das konfigurieren?

LAN A: 192.168.1.0
LAN B: 10.1.1.0

interfaces von OPNSense:
LAN A: 192.168.1.100
LAN B: 10.1.1.100
WAN: 172.16.0.10

einer der webserver: 192.168.1.211

vielen dank!
#24
besides the WAN interface, i have 2 LANs, configured
LAN1: 192.168.1.0
LAN2: 10.1.1.0

the interfaces of the OPNSense are:
LAN1: 192.168.1.100
LAN2: 10.1.1.100

i have a webserver 192.168.1.211 running in LAN1.
besides all clients in LAN1, also one client from LAN2 (10.1.1.130) should have access to the webserver.

so far, i was not able to configure this.

what i tried:

define a rule in LAN2 firewall settings
source: 10.1.1.130:any to destination: 192.168.1.211:80
when accessing 192.168.1.211 from a browser on 10.1.1.130, i can see that OPNSense follows the appropriate rule, but i get no webpage back.

i also tried to set up port forwarding on the firewall.
i tried to define that 10.1.1.100:8001 is forwarded to 192.68.1.211:80
and then accessed 10.1.1.100:8001 from the client 10.1.1.130
i also added the rule in the LAN2 settings to allow tcp access from 10.1.1.130:any to 10.1.1.100:8001
so far, with no success too.

with my former firewall solution, this has been done using source nat. i just defined that port 8001 on the firewall is forwarded to 192.168.1.211:80 and everything was working fine.

how can this be done using OPNSense?

PLEASE HELP!!!

thank you very much!
#25
i have a setup with 1 wan and 3 lan interfaces. the lan networks have to be isolated, allowing only some special packets to pass from 1 lan to the other.

question 1:
when i configure a firewall rule in the lan1 section, from a set of ip addresses to "any", will these ip addresses have access only to the internet (over the wan interface) or also to other lans?
i assume that this allows also access to other lans. so how can i make sure that only access to the internet is allowed but the other lans cannot be accessed?

question 2:
i have host1 in lan1 and host2 in lan2. i need to access port 80 of host1 from host2, i.e. an access between 2 lans.
can i just define a rule in the lan2 section of the firewall to allow source:host2/port:any to access destination:host1/port:80 ?

addon to question 2:
is there also a way to do a port translation so that host2 accesses port 8001 instead of port 80 (of either directly host1 or the firewall address) to end up with an access to host1/port:80 ?

thank you very much for your help!
#26
i'm actually trying to migrate my network from a kerio based solution to opnsense.
so far, it looks like things that were quite easy with kerio are much more complicated to do with opnsense, but probably, i just have not yet understood how to do this with opnsense. so this is what i already did / would like to do:

i configured the v4 dhcp in a way that all about 50 devices, connected (and actually allowed) on the first lan network get their reserved, static ip address. so in the dhcp config, i have the fixed association between mac address, ip address and hostname.

for configuration of the firewall, there is always a group of hosts allowed to use some protocols. while most of them need dns, http and https, there are some hosts which also need to be allowed to do ftp or have some other ports open for telephony or allow to use other services.

so my setup is expected to have a last rule at the very bottom, blocking everything that has not explictely been allowed by one of the rules above. then above, i allow all that is required...

i expected to be able to build groups of hosts and groups of services/ports, to then be able to only have a few rules defined like:
lan_source_group_A is allowed to use service_group_A to acess all destinations on the wan interface.

so i thought to be able to use the host names defined in the dhcp to form the source groups by using an alias. but unfortunately, i was not able to do so.
is it really so that i first have to configure an alias for each one of the hosts, already defined in the dhcp, to also associate the host name to the ip address already configured in dhcp, to be used in the firewall section?

so if yes, i first have to do my 50 aliases, to associate host name and ip, to handle the hosts by name instead of ip address in the firewall. right?

then in a second step, i have to do an assignment for each source group, to be used, to group the hosts to the appropriate group. right?

and then, i can define the rules, using the source groups defined before, in the source field of the rule.

but do i really have to configure a separate rule for each protocol to be used, or is it possible to also group the protocols, i.e. define a goup "standard_protocols" containing e.g. http, https, dns, ftp or a group "telephony" containng all ports to be opened for doing ip telephony?

i was used to be able to insert lists in each field of a rule (source, destination, protocol,...) while using kerio, and now i really wonder why this is not possible with much newer opnsense solution...but probably, i just misunderstood something.

so please help!!

thank you very much!!
#27
i'm actually trying to setup opnsense on a new hardware,
i want to use the onboard ethernet for wan, and inserted a lan card to each of the 3 pcie slots of the mainboard to serve 3 physically independent lan networks.
unfortunately, opnsense seems to recognize only 2 of the inserted ethernet cards, i.e. no matter how i assigne the cards to the pcie slots, i always get re0, re1, re2 but no re3.
am i doing something wrong or is there a limitation?
i haven't found appropriate info in the doc.
thanx!
#28
after doing a test installation on an old x86 itx pc, which only has 1 ethernet interface and no pcie slots, i thought that opnsense looks fiine. so i bought new low power hardware to setup a new router/firewall.

my hardware is an Asrock J3455M board with preinstalled Intel Celeron J3455 cpu, 8gb Kingston Memory (according to Asrock QVL list). Kingston 120gb ssd.
i decided for this mainboard as it provides 3 pcie slots, which allows me to install 3 ethernet cards to serve 3 subnets. (the ethernet cards are not yet installed, it's just mobo/cpu/hd/ram/dvd so far).

the mobo has the latest firmware installed.

after booting from dvd, i start the installer which asks me for kbd layout and font. i accept defaults.
in the installer, i try to select select "guided installation", but nothing happens.
from this point, the system plays a bit dead, i.e. there is no reaction to neither the cursor keys nor the enter key.  (while the mouse pointer can still be moved over  the screen but has no effect).

i tried a ps2 keyboard as well as an usb keyboard, connected to usb2 and usb3 ports, but it's always the same.

in one of my tries, when pressing the cursor up key, i noticed that it scrolled back, showing the transcript of the installation, but there is no way to go on with the installation.

the only command from keyboard that seems to be working is ctrl-alt-del which shuts down the whole thing.

what am i doing wrong? how can i solve?
thanx for your help!