MewBin Logo Tables that Speed Up vps vpn
IpTables Made By RebornXV

echo 1 > /proc/sys/net/ipv4/ip_forward

net.ipv4.ip_forward = 1

sysctl -p

echo 524288 > /proc/sys/net/netfilter/nf_conntrack_max

net.netfilter.nf_conntrack_max = 524288

sysctl -p

sysctl -w net.ipv4.tcp_fin_timeout=30
sysctl -w net.ipv4.tcp_keepalive_time=600

net.ipv4.tcp_fin_timeout = 30
net.ipv4.tcp_keepalive_time = 600

iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT

iptables -A INPUT -p udp --dport 1194 -j ACCEPT  # VPN default port for OpenVPN
iptables -A FORWARD -p udp --dport 1194 -j ACCEPT

# Example for allowing OpenVPN traffic:
iptables -A INPUT -p udp --dport 1194 -j ACCEPT
iptables -A FORWARD -i tun0 -j ACCEPT
iptables -A FORWARD -o tun0 -j ACCEPT

iptables -D INPUT -j LOG

# Enable NAT for the VPN subnet (replace `10.8.0.0/24` with your VPN subnet)
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

# Adjust MTU on the VPN interface (e.g., tun0 for OpenVPN)
ifconfig tun0 mtu 1400

tcp-nodelay

iptables -L -v

these tables are for speed to speed up your vps if its slow it will speed it up a lil or a lot depends on the vps etc an it might or might not open your nat type
witch will speed up your vpn or vps enjoy :)
Logo
Tables that Speed Up vps vpn
Created: 2025-02-13 05:55:12
Author: RebornXV
Views: 61
Comments: 0
0   0
New (N) Raw (R)

Comments

No comments yet.
Please note that all posted information is publicly available and must follow our TOS.