Page 1 of 1

how to use public ip routing on lan interface

Posted: Fri Feb 17, 2012 8:44 pm
by harisagars
O I AM USING 450G WITH SIMPLE QUEUES . ROUTER O/S VERSION 5.13 AND I NEEED SOLUTION THAT ALL LOCAL LAN PORTS SHOULD ACCESS PUBLIC WHICH ARE FREE ON WAN IS IT POSSIBLE IF SO PLS GIVE SOLUTION I AM BIGINER

sorry for my poor explanation

PLZ CHECK THE JPEG FILE ATTACHED BELOW

Re: how to use public ip routing on lan interface

Posted: Sat Feb 18, 2012 12:18 am
by Ibersystems
Hello,

You can make this with NAT. set all IPs to wan port (ether1) and create nat rules to the priate networks.

Read about NAT in the wiki.

Re: how to use public ip routing on lan interface

Posted: Sat Feb 18, 2012 5:20 am
by harisagars
Can u pls explai clearly i have added to wan interface and what should be done next what nat rule should be ritten ther pls help me

Re: how to use public ip routing on lan interface

Posted: Sat Feb 18, 2012 7:04 am
by vik1988
you can try this,

/ip firewall nat add chain=srcnat src-address=2.2.2.0/24 action=src-nat to-addresses=202.153.47.34
/ip firewall nat add chain=srcnat src-address=1.1.1.0/24 action=src-nat to-addresses=202.153.47.35
/ip firewall nat add chain=srcnat src-address=30.30.246.0/24 action=src-nat to-addresses=202.153.47.36

Re: how to use public ip routing on lan interface

Posted: Sat Feb 18, 2012 7:05 pm
by harisagars
hello vik thanks for your reply i have done which u written but it is not working

Re: how to use public ip routing on lan interface

Posted: Sat Feb 18, 2012 7:34 pm
by Ibersystems
Do you have a route to 0.0.0.0? With the correct gateway?

Re: how to use public ip routing on lan interface

Posted: Sat Feb 18, 2012 7:50 pm
by harisagars
yes i did

Re: how to use public ip routing on lan interface

Posted: Sun Feb 19, 2012 7:39 am
by vik1988
Hello Hari,

have you checked internet on 2.2.2.0/24 pool.

or you can post your "export" data here....

Re: how to use public ip routing on lan interface

Posted: Sun Feb 19, 2012 1:34 pm
by harisagars
yes i have checked net its comming. i should keep gateway as router ip

Re: how to use public ip routing on lan interface

Posted: Mon Feb 20, 2012 1:39 pm
by vik1988
:lol: