ipchains to iptables

Edward Dekkers edward at tripled.iinet.net.au
Thu Apr 1 00:31:15 UTC 2004


Toto Gamez wrote:

> lists,
>  
> I want my to share my internet connection and restrict other to access 
> only pop3 and smtp given by our provider so they can send/receive email 
> and not to browse the internet. how can I do that using iptables. I can 
> do that in ipchains using "ipchains -A forward -s 192.168.100.2 -d 0/0 
> -j MASQ" to browse and access internet and  "ipchains -A forward -s 
> 192.168.100.3 -d 1.2.3.4 -j MASQ"  to access 1.2.3.4. I already 
> activated ip forwarding on my machine 
>  
> any help will be greatly appreciated
>  
>  
> thanks
>  
> Toto
> 

This will give you some IPTABLES insight:

http://www.tldp.org/HOWTO/IP-Masquerade-HOWTO/index.html

Regards,
Ed.






More information about the redhat-list mailing list