Skip to content

Latest commit

 

History

History
40 lines (29 loc) · 934 Bytes

bastion.md

File metadata and controls

40 lines (29 loc) · 934 Bytes

Bastion server

Network

Two NICs, one bridged directly to the network using macvtap, second is inside the private NAT network.

It's important that the bridge is used for internet connection (default route), otherwise the VM is not visible to the network.

You cannot ping the bastion server from the hypervisor, you always get Host unreachable, ping something else to check if the connection is working.

Connecting

ProxyCommand

ssh -o ProxyCommand='ssh -i <key-path> -W %h:%p bastion.lpm.feri.um.si' -i <key-path> <target>

ProxyJump

eval $(ssh-agent)
ssh-add <key-path>
ssh -J bastion.lpm.feri.um.si <target>

SSH configuration

~/.ssh/config
Host bastion
    User <user>
    HostName bastion.lpm.feri.um.si
    IdentityFile <path>
  
Host gateway builder spum-platform spum-mqtt grades ps esp
    User <user>
    HostName %h
    ProxyJump bastion
    IdentityFile <path>