LXC port forwarding and nftables

I’m trying to forward some ports of host ($hostport) to container ($containerport). The ip address of host is $hostip and container is $containerip. Here are my interfaces : $ ip link show 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu…

Details

SSH / SFTP Permission denied (publickey)

I’ve added the following to my sshd_config Match Group sftponly ChrootDirectory /srv/sftpfolder ForceCommand internal-sftp #AllowTcpForwarding no PermitTunnel no X11Forwarding no I created “user” by useradd -g sftponly user mkdir -p /home/user/.ssh And then created authorized_keys in the users ssh folder. Permissions on /home/user/.ssh/ is 700 and on the authorized_keys file 600. But when I try…

Details

web3.js 0.20.7 & Metamask: contract.setProvider(web3.givenProvider) is not a function

I am interacting with a contract on the Rinkeby testnet using web3.js (version 0.20.7) with Metamask and the chrome console. I setup a contract object called mycontract for a given ABI and address. When I set the web3 provider for this contract using mycontract.setProvider(web3.givenProvider) I get an error saying that mycontract.setProvider is not a function.…

Details