[Solved] ssh into a server which is connected to a VPN service, using ifconfig and route not ip

m004yu Asks: ssh into a server which is connected to a VPN service, using ifconfig and route not ip
Same issue as described here: ssh into a server which is connected to a VPN service

However I have no access to the “ip” utility. Just good ‘ol ifconfig and route commands as I’m working on an OpenBSD box. How would one do the same task with those commands?

Trying to translate the following commands to ifconfig & route:

ip rule add table 128 from 50.1.2.3

ip route add table 128 to 50.1.2.0/24 dev eth0

ip route add table 128 default via 50.1.2.1

So far ive roughly translated the last two commands to

route add [128] $PUBLICSUBNET/24 vio0

route add [128] $PUBLICSUBNET/24 vio0

but still stuck on the first one.

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.