0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

openbsd と windows 10 pro と winscp

Posted at

linux との間では

nec# ./comment-out.bat /etc/rc.conf.local                                      
xenodm_flags=
portmap_flags=""
mountd_flags=""
nfsd_flags="-tun 4"



nec# ./comment-out.bat /etc/exports                                            
/NFS---	-maproot=bin: -network=192.168.10 -mask=255.255.255.0


nec# ./comment-out.bat /etc/pf.conf                                            
wired = "bge0"
table <martians> { 0.0.0.0/8 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16     \
  172.16.0.0/12 192.0.0.0/24 192.0.2.0/24 224.0.0.0/3 \
  192.168.0.0/16 198.18.0.0/15 198.51.100.0/24        \
  203.0.113.0/24 }
set block-policy drop
set loginterface $wired
set skip on lo0
match in all scrub (no-df random-id max-mss 1440)
antispoof quick for $wired
block in quick proto tcp to any port { telnet, 445, 1433, mysql, rdp, 137, 138, 139, 445 }
pass in   quick on $wired from 192.168.10.0/24 to 192.168.10.0/24
pass out  quick on $wired from 192.168.10.0/24 to 192.168.10.0/24
block in  quick on $wired from <martians> to any
block out quick on $wired from any to <martians>
block in  quick on $wired from <spammers> to any
block out quick on $wired from any to <spammers>
block all
pass out quick inet
pass in on $wired inet

にて

linux で
# mount.nfs 192.168.10.52:/NFS--- /NFS-nec---
をして

# df
ファイルシス          1K-ブロック     使用    使用可 使用% マウント位置
dev                       5061056        0   5061056    0% /dev
run                       5091748     1512   5090236    1% /run
/dev/sda1               428203516 76660560 350882848   18% /
tmpfs                     5091748        0   5091748    0% /dev/shm
/dev/sda1               428203516 76660560 350882848   18% /var/tmp
/dev/sda1               428203516 76660560 350882848   18% /home
/dev/sda1               428203516 76660560 350882848   18% /var/cache
/dev/sda1               428203516 76660560 350882848   18% /root
/dev/sda1               428203516 76660560 350882848   18% /srv
tmpfs                     5091748        8   5091740    1% /tmp
/dev/sda1               428203516 76660560 350882848   18% /var/log
tmpfs                     1018348       80   1018268    1% /run/user/1000
192.168.10.52:/NFS---   264458752  8271296 242964544    4% /NFS-nec---

うまく マウントできてます




しかし openbsd と windows との間ですが

1)
https://4thsight.xyz/42511
で 先人がいますので 後を追いますが

openbsd では NFSが virsin 4 のようで
そのため 最後の最後で接続できません

2)かといって sambaは 面倒ですので

2)windowsで winscp をつかうとできはします

./comment-out.bat ssh-txt.bat                                            
cp /etc/ssh/sshd_config-txt /etc/ssh/sshd_config
/etc/rc.d/sshd restart

して 
TEXTパスワードを許可し

windows 10 からの winscpを許可したら ずっと接続できますので
その直後に

./comment-out.bat ssh-ango.bat                                           
cp /etc/ssh/sshd_config-ango /etc/ssh/sshd_config
/etc/rc.d/sshd restart

TEXTパスワードの許可を取り消して やってます
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?