Set up rules in ip firewalls forward chain, to block or accept whatever addresses you need.
I know that i need to set up an firewall rule, but i don't know how to block that ip to go in internet but in the same time to be accessed from internet via port forward on port 80 for example.
Thanks,
N
Use connection state, src-address, and out-interface as your keys:
action=drop src-address=192.168.10.100 out-interface=wan
As long as this rule comes after "accept connection-state=established,related" then you'll be fine because an incoming connection from the WAN will cause the replies from this host to be in the "established" state of the router's connection tracking, so these replies will not reach this new rule.
New connections from the host to the Internet, however, will NOT match the established,realted rule, so the packet will continue down the chain until it reaches this rule, where it will be dropped. Since it's your own server, you may want things to fail quickly instead of waiting for a timeout - so you should probably use one of the reject actions instead of a drop.
Furthermore, you would probably be better off matching the src-mac-address of the host instead of its IP address - that way, if the host's address changes, it won't magically get allowed on the Internet.