-
Notifications
You must be signed in to change notification settings - Fork 2
Traffic_Forwarding
Ebrahim Shafiei edited this page Jan 25, 2026
·
3 revisions

This guide explains how to use IP Forwarding and iptables NAT to redirect all incoming traffic from a Linux server to a 4iProto destination server. This scenario is used for Full Traffic Forwarding, Transparent Proxy, and Gateway Relay.
- Linux operating system
- Root access
- iptables installed and active
- Valid 4iProto server IP
- Basic understanding of NAT, DNAT, SNAT, Routing
echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
sysctl -piptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination IRAN_IPiptables -t nat -A PREROUTING -j DNAT --to-destination 4iProto_IPiptables -t nat -A POSTROUTING -j MASQUERADE- The SSH port rule must be applied before the general PREROUTING rule
- Ensure alternative SSH access before applying rules
- Adjust firewall settings if using firewalld or ufw
🔒 Abdal 4iProto Server Wiki
Maintained by Ebrahim Shafiei (EbraSha)
📧 Prof.Shafiei@Gmail.com
🌐 GitHub Repository
© 2025 Abdal Security Group — All rights reserved.