omec-project / pcf

1 stars 16 forks source link

Defining Policy Rule Between Two UEs #33

Open RamzahRehmanPAK opened 1 year ago

RamzahRehmanPAK commented 1 year ago

How can I define a policy rule to specifically allow traffic between two UEs and deny all other traffic? I am working on the Aether project. So I added one default allow (high priority) and one default deny (low priority) rule in the config file on the Aether project (sd-core-5g-values.yaml file) as shown below: Screen Shot 2023-05-10 at 10 50 15 AM

Since their config file doesn't allow to define two endpoints in their allow/deny policy. I modified the "allow-specific" rule in pcf/service/init.go file to add a PCC rule that allows traffic between 172.250.237.122 and 172.250.237.121 like this "permit out ip from 172.250.237.122/32 to 172.250.237.121/32" as shown below.

Screen Shot 2023-05-10 at 10 48 09 AM

The expected behavior is that all traffic between 172.250.237.122 and 172.250.237.121 should be allowed and all others should be denied. However, all the traffic gets denied including the traffic between 172.250.237.122 and 172.250.237.121. Kindly help me figure out the issue.

onf-bot commented 5 months ago

This issue has been stale for 30 days and will be closed in 5 days. Comment to keep it open.

github-actions[bot] commented 1 month ago

This issue has been stale for 120 days and will be closed in 15 days. Comment to keep it open.