[klien] ---> redirect [iptables] ---> [squid] ---> internet
Client yg melakukan koneksi ke internet (port 80) langsung
dilempar oleh iptables ke port squid (port 3128 atau yg lain).
Redirect Port
# Redirect internet port to squid port
iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80 -j REDIRECT
--to-ports 3128
# SNAT
iptables -t nat -A POSTROUTING -o [ethernet keluar] -j SNAT
--to-source [ip publik]
# MASQUERADE
iptables -t nat -A POSTROUTING -s [ip LAN] -j MASQUERADE
Artikel Terkait :
- [Linux] SSL Certificates, Private Keys and CSRs with OpenSSL
- [Linux] Transfer Files Or Folder Using SCP
- [Linux] Unicode Support CentOS 5.5, PHP And PCRE
- [Linux] Apache Tomcat 6 And Ubuntu 10.04
- [Linux] Cannot Mount Volume NTFS On Ubuntu
- [Linux] Preset Winamp For Audacious On Ubuntu
- [Linux] Upgrade Debian Kernel
- Setting RAID 1 IBM XSeries 346
- NTP (Network Time Protocol)
- [Linux] Redirect on Transparent Proxy
- SLaX
- [Oracle EBS] GL Journals Stuck With Funds Status In Process
- [Oracle EBS] ORA-01591 In-Doubt Transactions
- [Oracle EBS] Query to list Reports assigned to a Responsibility
- [Oracle EBS] Query Period Status
- [Oracle EBS] Query To Find Application Name And Short Name
- [Linux] Upgrade PHP 5 to PHP 7 using Yum on Oracle RHEL 6.3 Santiago
- [Linux] Install php-mbstring On ORHEL 6.3
0 comments:
Post a Comment