Using Vpn along with saving firmware worth it?

hello, i have a tl-wr841n v7 device, it is a 4MB flash device. so i was thinking to install openwrt on it without luci to save space and increase its performance, but to make vpn connection also working i have to install strongswan, ppp-mod-pptp, kmod-nf-nathelper-extra. if i am not wrong these packages. so.. i am scared if i want to use vpn which is of different connection types like IKEv2, pptp or others, i have to install packages which will again make device heavier and make it useless to install openwrt? without any performance increase..?
the command i will use to make openwrt without luci is: make image PROFILE=tl-wr841n-v7 PACKAGES=β€œ-ppp -ppp-mod-pppoe -ip6tables -odhcp6c -kmod-ipv6 -kmod-ip6tables -odhcpd-ipv6only”

If you're an novice probably it's better to get prebuilt images for 18.06 with LuCI.

It's theoretically possible to install packages in RAM.
But that router barely has enough RAM and CPU resources to run a VPN.
So, even if you manage to configure it, be ready to run into very poor performance.
In short, it's not worth the effort unless your use case is very specific.

1 Like

so the command i am going to use is ok? for performance increase? without vpn

If you want to save flash and RAM, it should be like this:

1 Like

just asking how much performance will be increased by saying firmware space?

Unfortunately the performance increase is likely to be insignificant.
To achieve a tangible effect would require to multiply the hardware resources.
Moreover, you cannot improve CPU and NIC performance that way.

should i change to openwrt or stay with original firmware? if there will be no advantage of installing it? or it will be better than original?

Actually, my device is D-Link DIR-620 D1 which is just a bit better than yours.
Nevertheless I prefer OpenWrt that is leagues above the original firmware.