Manager WAN IPs
Manager WAN IPs
Hy i am using fiber optic as my WAN...i have to LAN cards. I have 16 IP Pool from my ISP and i want to use this Pool behind my Linux firewall.Any help...?Thanks in advance.
Regards
Abdulrehman
Abdulrehman
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear mejam,
Salam,
You can use iptables.
Best Regards.
Salam,
You can use iptables.
Code: Select all
IPT='/sbin/iptables"
WAN_IP="202.63.192.111"
LAN_IP="192.168.2.100"
${IPT} -t nat -A PREROUTING -d ${WAN_IP} -j DNAT --to ${LAN_IP}
${IPT} -t nat -A POSTROUTING -s ${LAN_IP} -j SNAT --to ${WAN_IP}
Farrukh Ahmed
AOA,
Farrukh bhai is right, its simple use SNAT and DNAT options, i have used it many times, it work great. But if you are using a mail server then it might create some problems.
Farrukh bhai is right, its simple use SNAT and DNAT options, i have used it many times, it work great. But if you are using a mail server then it might create some problems.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Re:
While doing this will all other firewall filtration rules work properly??LinuxFreaK wrote:Dear mejam,
Salam,
You can use iptables.
Best Regards.Code: Select all
IPT='/sbin/iptables" WAN_IP="202.63.192.111" LAN_IP="192.168.2.100" ${IPT} -t nat -A PREROUTING -d ${WAN_IP} -j DNAT --to ${LAN_IP} ${IPT} -t nat -A POSTROUTING -s ${LAN_IP} -j SNAT --to ${WAN_IP}
AOA,
Dear Usman bhai,
Firewall rules are read from top to bottom, so it depends on the position of the rule, where you define it.
Dear Usman bhai,
Firewall rules are read from top to bottom, so it depends on the position of the rule, where you define it.
Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear x2oxen,
Salam,
Best Regards.
Salam,
Yes, it will work.x2oxen wrote:While doing this will all other firewall filtration rules work properly??
Best Regards.
Farrukh Ahmed
-
- Site Admin
- Posts: 5132
- Joined: Fri May 02, 2003 10:24 am
- Location: Karachi
- Contact:
Re:
Dear x2oxen,
Salam,
Best Regards.
Salam,
You are Guru and we are nothing in front of you.x2oxen wrote:but why would i do that if reverse route/forward routes and ip_forwarding working fine for me!
Best Regards.
Farrukh Ahmed