Corsair

joined 2 years ago
 

Hi,

I would like to found a regex match in a stdout

stdout

 /dev/loop0: [2081]:64 (/a/path/to/afile.dat)

I would like to match

/dev\/loop\d/

and return /dev/loop0

but the \d seem not working with awk ... ?

How to achieve this ? ( awk is not mandatory )

[–] Corsair@programming.dev 1 points 1 month ago* (last edited 1 month ago)

a more accurate diagram of what I'm targeting..

┌──────┐       ┌───────┐         ┌───┐  
│Node 1│       │Node 2 │         │DVR│  
└──┬───┘       └┬──────┘         └─┬─┘  
   │            │                  │    
   │            │                  │    
vlan10         vlan10             vlan20
   │            │                  │    
   └─────────□  □  □───────────────┘    
             ┌───────────┐              
             │hEX refresh│              
             │E50UG      │ □            
             └───────────┘              
                 □                      
                 │                      
                 │                      
                 │                      
              trunking                  
                 │                      
                 │                      
                 │                      
                 □                      
               ┌───┐  □                 
               │hEX│  □                 
               └───┘  □                 
                      □                 

□ = port

So it should be possible for Node 1 to reach DVR ? Either trough Firewall or VLAN rules ?

[–] Corsair@programming.dev 1 points 1 month ago* (last edited 1 month ago) (1 children)

Thanks @fraksken@infosec.pub

with Firewall I get how to do it, but with VLAN ??
I was thinking an access port could be only on VLAN at the time no ?

 

Hi,

Is it possible in a router to route traffic from one specific node ( here the laptop to the DVR) but not the other way around ( DVR to 192.168.10.0/28 ) ?

        192.168.10.1/28             
            ┌──────┐                
            │laptop│                
            └───┬──┘                
                │                   
                │                   
                │                   
                ▼                   
             ┌──────┐               
        ┌────┤router├──┐            
        │    └──────┘  │            
        │              │            
        ▼              ▼            
     ┌──────┐        ┌───┐          
     │server│        │DVR│          
     └──────┘        └───┘          
192.168.10.2/28      192.168.20.1/28
                             ──     

Meaning, I want to keep the DVR in it's subnet only. But allow the laptop to reach it.

Thanks.

3
submitted 1 month ago* (last edited 1 month ago) by Corsair@programming.dev to c/meta@programming.dev
 

Hi,

I saw that someone replied to one of my topics, and I wanted to react or reach him back. But I've saw the following :

I suppose it's only the Network community ? (where the post was hosted ? )

I've discovered the modlog

https://programming.dev/modlog?page=19&actionType=ModBanFromCommunity&userId=1227688

But this user seem to have a lot of activity :) So I don't find why on Network he was Banned ?
is there an easy way ?

Thanks.

[–] Corsair@programming.dev 1 points 4 months ago

it works back, it's just super slow.....

9
submitted 4 months ago* (last edited 4 months ago) by Corsair@programming.dev to c/programming@programming.dev
 

Hi,

Is it just me, or posting image is not working anymore on programming.dev ?

Thanks.

 

Hi,

I would like to create a LAN where each node need to authenticate before gaining access to the LAN.

and secondly be able to monitor the data consumption of each node and even limit the speed for a node when exceeded.

is this is possible with RouterOS ?

Thanks.

[–] Corsair@programming.dev 1 points 9 months ago

Thank you very much to all of you for your input !

I see port in few of your feedback.

I was not clear enough, let me rephrase:
is it possible to give a subnet to a node, not based on the port of the switch/router but based on the node ? meaning that the switch/router need to recognize the node ( MAC or login? ) and then will give him access to A or B

Thanks.

 

cross-posted from: https://programming.dev/post/20616555

Hi,

I would like to create a LAN where each node need to authenticate before gaining access to the LAN.

and secondly be able to monitor the data consumption of each node and even limit the speed for a node when exceeded.

I'm looking for something FLOSS. For example a single-board computer with a gnu/Linux etc...

Maybe some distribution or solution already exist for this ?

Thanks.

 

Hi,

I would like to create a LAN where each node need to authenticate before gaining access to the LAN.

and secondly be able to monitor the data consumption of each node and even limit the speed for a node when exceeded.

I'm looking for something FLOSS. For example a single-board computer with a gnu/Linux etc...

Maybe some distribution or solution already exist for this ?

Thanks.

 

Hi,

I would like to assign different subnet to devices connecting to my switch/router Mikrotik (RouterOS v6.40).

To avoid devices connected on subnet 1 to reach devices on subnet 2 and moreover to disable access to the WWW on one of those two subnet

diagram

Is it possible with RouterOS to set the DHCP server to lease two set of ip (subnet) base on a Whitelist, meaning if a device is on the white list it get subnet1 if not subnet2 ?

Or do you have more practical solutions ?

Thanks.

 

cross-posted from: https://programming.dev/post/19296452

Hi,

I would like to make some simple network simulations

I've tried to make run few (under Linux or Windows)

  • Kathara
  • GNS3
  • EVE-NG (3.1 GB ! to download )
  • omnetpp
  • ns-3
  • Cisco Packet Tracer (Not FLOSS, if I'm not mistaken )

The only one that I managed to install, run and use (set some nodes) was sadly the Cisco Packet Tracer ...

They other have their install process way to much complex or with such layer of dependency or more simply they way the works is too complex (running side VM for each nodes etc..) make it challenging to installing.

Do youn know a FLOSS Network Simulator , this is easy to install ?

Thanks.

 

Hi,

I would like to make some simple network simulations

I've tried to make run few (under Linux or Windows)

  • Kathara
  • GNS3
  • EVE-NG (3.1 GB ! to download )
  • omnetpp
  • ns-3
  • Cisco Packet Tracer (Not FLOSS, if I'm not mistaken )

The only one that I managed to install, run and use (set some nodes) was sadly the Cisco Packet Tracer ...

They other have their install process way to much complex or with such layer of dependency or more simply they way the works is too complex (running side VM for each nodes etc..) make it challenging to installing.

Do youn know a FLOSS Network Simulator , this is easy to install ?

Thanks.

[–] Corsair@programming.dev 1 points 11 months ago* (last edited 11 months ago)

I think I found the cause.

one of the parent div have is properties perspective and it seem to be the problem... (Firefox 115*)

So I created an dirty workaround ;)

 

Hi everyone,

I would like one of my div to have an background-attachment: fixed

But the background still scroll 😤

This div is under html body div div div div div

and it CSS properties are

#TheDiv {
    min-height: 100vh;
    min-width: 100vw;
    background-image: url('/anImage.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    position: absolute;
    left: 0;
    padding: 40px;
    box-sizing: border-box }

Any Ideas, what could cause the background to scroll anyway ?

Thanks

[–] Corsair@programming.dev 1 points 11 months ago

Thank you @nnullzz@lemmy.world & @bjorney@lemmy.ca & @fubarx@lemmy.ml

for those explanations ! So, as I have my hand on a raspberry , I will give a shot with that first :)

[–] Corsair@programming.dev 3 points 11 months ago

Thank you @TheOneCurly@lemm.ee & @fart_pickle@lemmy.world for those explanations ! So as I have my hand on a raspberry , I will give a shot with that first :)

 

cross-posted from: https://programming.dev/post/18765600

Hi everyone,

I would like to learn to program and built project using MicroControllers

I'm a Python dev. Therefore I would like to use it to program those.

But I've no idea where to start..

  • For the hardware:
    • What will be the best Raspberry Pi or Arduino ?
      I know they are not the same thing but could tell me in which situation you use more one than the other ? Or do you use something else ?
  • Software
    • I've already my IDE VisualCodium
      What is MicroPython Vs CircuitPython ?

If you have any resources I'm all eras.

Thanks.

[–] Corsair@programming.dev 2 points 11 months ago

Thank you very much for your feedback @anzo@programming.dev & @rimu@piefed.social

[–] Corsair@programming.dev 2 points 1 year ago (1 children)

Thanks @pietervdvn@lemmy.ml unfortunatly ikea is quite the opposite of

... ~strong ...

[–] Corsair@programming.dev 0 points 1 year ago (1 children)

Thanks @Max_P@lemmy.max-p.me weird because I can use XHR as async.. see: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open open(method, url, async)

[–] Corsair@programming.dev 2 points 1 year ago* (last edited 1 year ago)

Thank you all for your input's !! 🤗

I've put the files on a USB flash drive formatted as a classic FAT. Then I mounted it in the VM (I confirm no need the VMware-tools for that :)

[–] Corsair@programming.dev 1 points 1 year ago

Really cool ! (bookmarked*)
Just the essential !
to bad there isn't either a difference between versions or a history of the changes

view more: next ›